- commit
- 2708b26ddb4dccae94acfb4635f56b1e51998960
- parent
- af1cdd901bce0783812c5a8a490214feadb546db
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-17 05:34
rm cleanup just kill it
Diffstat
| M | config.def.h | 1 | - |
| M | xiwm.c | 25 | +------------------------ |
2 files changed, 1 insertions, 25 deletions
diff --git a/config.def.h b/config.def.h
@@ -27,7 +27,6 @@ static Key keys[] = {
27 27 { Mod1Mask, XK_l, setmfact, {.f = +0.02 } },
28 28 { Mod1Mask, XK_h, setmfact, {.f = -0.02 } },
29 29 { Mod1Mask, XK_F4, killclient, {0} },
30 -1 { Mod1Mask|ShiftMask, XK_q, quit, {0} },
31 30 { Mod4Mask, XK_F1, view, {.ui = 0 } },
32 31 { Mod4Mask, XK_F2, view, {.ui = 1 } },
33 32 { Mod4Mask, XK_F3, view, {.ui = 2 } },
diff --git a/xiwm.c b/xiwm.c
@@ -75,7 +75,6 @@ static void focusstack(const Arg *arg); 75 75 static void setposition(const Arg *arg); 76 76 static void setmfact(const Arg *arg); 77 77 static void killclient(const Arg *arg);78 -1 static void quit(const Arg *arg);79 78 static void spawn(const Arg *arg); 80 79 81 80 /* X event handlers */ @@ -106,7 +105,6 @@ static void (*handler[LASTEvent]) (XEvent *) = { 106 105 [ConfigureRequest] = configurerequest, 107 106 }; 108 107 static Atom wmatom[WMLast], netatom[NetLast];109 -1 static Bool running = True;110 108 static unsigned int desktop; 111 109 static float mfact = 0.5; 112 110 static Display *dpy; @@ -838,12 +836,6 @@ killclient(const Arg *arg) 838 836 } 839 837 840 838 void841 -1 quit(const Arg *arg)842 -1 {843 -1 running = False;844 -1 }845 -1846 -1 void847 839 spawn(const Arg *arg) 848 840 { 849 841 if (fork() == 0) { @@ -933,23 +925,11 @@ run(void) 933 925 { 934 926 XEvent ev; 935 927 XSync(dpy, False);936 -1 while (running && !XNextEvent(dpy, &ev))-1 928 while (!XNextEvent(dpy, &ev)) 937 929 if (handler[ev.type]) 938 930 handler[ev.type](&ev); 939 931 } 940 932941 -1 void942 -1 cleanup(void)943 -1 {944 -1 while (clients)945 -1 unmanage(clients);946 -1 XUngrabKey(dpy, AnyKey, AnyModifier, root);947 -1 XDestroyWindow(dpy, wmcheckwin);948 -1 XSync(dpy, False);949 -1 XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);950 -1 XDeleteProperty(dpy, root, netatom[NetActiveWindow]);951 -1 }952 -1953 933 int 954 934 main(int argc, char *argv[]) 955 935 { @@ -960,7 +940,4 @@ main(int argc, char *argv[]) 960 940 setup(); 961 941 runautostart(); 962 942 run();963 -1 cleanup();964 -1 XCloseDisplay(dpy);965 -1 return EXIT_SUCCESS;966 943 }