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); XMapRaised(dpy, c->parent);
top(c); top(c);
active(c); active(c);
if (zoom) {
quickreshape(
c,
-BORDER,
-BORDER,
ra.width + 2 * BORDER,
ra.height + 2 * BORDER);
}
} else { } else {
c = clients; c = clients;
for (l = &clients; *l; l = &(*l)->next) for (l = &clients; *l; l = &(*l)->next)

View file

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

1
dat.h
View file

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

12
key.c
View file

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

View file

@ -219,16 +219,6 @@ int manage(Client* c, int mapped) {
cmapfocus(current); cmapfocus(current);
c->init = 1; 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 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 */ /* If it's bigger than the screen, try to set it maximized */