scrap zoom mode

This commit is contained in:
Iris Lightshard 2021-03-07 01:32:13 -05:00
parent 943b4fd82a
commit 0308053930
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
6 changed files with 0 additions and 33 deletions

View file

@ -300,14 +300,6 @@ void shuffle(int up) {
XMapRaised(dpy, c->parent);
top(c);
active(c);
if (zoom) {
quickreshape(
c,
-BORDER,
-BORDER,
ra.width + 2 * BORDER,
ra.height + 2 * BORDER);
}
} else {
c = clients;
for (l = &clients; *l; l = &(*l)->next)

View file

@ -60,7 +60,6 @@
#define RESIZE_KEY XK_r
#define DESTROY_KEY XK_d
#define STICK_KEY XK_s
#define ZOOM_KEY XK_z
#define STICKYTOFRONT_KEY XK_t
#define STICKYTOBACK_KEY XK_b

1
dat.h
View file

@ -157,7 +157,6 @@ extern int solidsweep;
extern int numvirtuals;
extern int scrolling;
extern int ffm; /* focus follows mouse */
extern int zoom;
extern Atom exit_rio;
extern Atom restart_rio;

12
key.c
View file

@ -47,7 +47,6 @@ void keysetup(void) {
int pcode = XKeysymToKeycode(dpy, SNAPTOPRIGHT_KEY);
int ccode = XKeysymToKeycode(dpy, SNAPCENTER_KEY);
int slcode = XKeysymToKeycode(dpy, LAUNCH_KEY);
int zcode = XKeysymToKeycode(dpy, ZOOM_KEY);
int rightcode = XKeysymToKeycode(dpy, NEXTVIRT_KEY);
int leftcode = XKeysymToKeycode(dpy, PREVVIRT_KEY);
#ifdef DEVEL
@ -224,14 +223,6 @@ void keysetup(void) {
0,
GrabModeSync,
GrabModeAsync);
XGrabKey(
dpy,
zcode,
SHORTCUTMOD,
screens[i].root,
0,
GrabModeSync,
GrabModeAsync);
XGrabKey(
dpy,
tabcode,
@ -280,7 +271,6 @@ void keypress(XKeyEvent* e) {
int scode = XKeysymToKeycode(dpy, STICK_KEY);
int rcode = XKeysymToKeycode(dpy, RESIZE_KEY);
int slcode = XKeysymToKeycode(dpy, LAUNCH_KEY);
int zcode = XKeysymToKeycode(dpy, ZOOM_KEY);
int hcode = XKeysymToKeycode(dpy, SNAPLEFT_KEY);
int lcode = XKeysymToKeycode(dpy, SNAPRIGHT_KEY);
int jcode = XKeysymToKeycode(dpy, SNAPBOTTOM_KEY);
@ -322,8 +312,6 @@ void keypress(XKeyEvent* e) {
ra.height + 2 * BORDER);
else if (e->keycode == scode && (e->state & SHORTCUTMOD) == (MODBITS))
stick(current);
else if (e->keycode == zcode && (e->state & SHORTCUTMOD) == (MODBITS))
zoom = !zoom;
/* half snap */
else if (e->keycode == hcode && (e->state & SHORTCUTMOD) == (MODBITS))

1
main.c
View file

@ -43,7 +43,6 @@ int solidsweep = 0;
int numvirtuals = 0;
int ffm = 0;
int kbLaunch = 0;
int zoom = 0;
Atom exit_rio;
Atom restart_rio;

View file

@ -219,16 +219,6 @@ int manage(Client* c, int mapped) {
cmapfocus(current);
c->init = 1;
/* If we are in zoom mode, spawn the window maximized */
if (zoom) {
quickreshape(
c,
-BORDER,
-BORDER,
ra.width + 2 * BORDER,
ra.height + 2 * BORDER);
}
/* If the window is out of bounds of the screen, try to wrangle it */
/* If it's bigger than the screen, try to set it maximized */