summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2010-05-29 12:48:11 +0100
committerAnselm R Garbe <anselm@garbe.us>2010-05-29 12:48:11 +0100
commit5c6545adf5e2fc7011bd53735910f66998cade64 (patch)
tree58a9a5fd83b154e38b6fdc3cc8d4fb7b8c4a8698
parentAdded tag 5.8 for changeset 60ea8fed13ab (diff)
downloaddwm-5c6545adf5e2fc7011bd53735910f66998cade64.tar.gz
dwm-5c6545adf5e2fc7011bd53735910f66998cade64.zip
removing Sylvain's patch because it breaks more than it fixes unfortunately, re-issuing a bugfix release 5.8.1
-rw-r--r--config.mk2
-rw-r--r--dwm.c20
2 files changed, 2 insertions, 20 deletions
diff --git a/config.mk b/config.mk
index 303984d..df7194b 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dwm version 1# dwm version
2VERSION = 5.8 2VERSION = 5.8.1
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/dwm.c b/dwm.c
index fedf069..5df4919 100644
--- a/dwm.c
+++ b/dwm.c
@@ -57,8 +57,7 @@
57/* enums */ 57/* enums */
58enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ 58enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
59enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ 59enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
60enum { NetSupported, NetWMName, NetWMState, 60enum { NetSupported, NetWMName, NetWMState, NetLast }; /* EWMH atoms */
61 NetWMFullscreen, NetLast }; /* EWMH atoms */
62enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ 61enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
63enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, 62enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
64 ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ 63 ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
@@ -162,7 +161,6 @@ static void checkotherwm(void);
162static void cleanup(void); 161static void cleanup(void);
163static void cleanupmon(Monitor *mon); 162static void cleanupmon(Monitor *mon);
164static void clearurgent(Client *c); 163static void clearurgent(Client *c);
165static void clientmessage(XEvent *e);
166static void configure(Client *c); 164static void configure(Client *c);
167static void configurenotify(XEvent *e); 165static void configurenotify(XEvent *e);
168static void configurerequest(XEvent *e); 166static void configurerequest(XEvent *e);
@@ -251,7 +249,6 @@ static int (*xerrorxlib)(Display *, XErrorEvent *);
251static unsigned int numlockmask = 0; 249static unsigned int numlockmask = 0;
252static void (*handler[LASTEvent]) (XEvent *) = { 250static void (*handler[LASTEvent]) (XEvent *) = {
253 [ButtonPress] = buttonpress, 251 [ButtonPress] = buttonpress,
254 [ClientMessage] = clientmessage,
255 [ConfigureRequest] = configurerequest, 252 [ConfigureRequest] = configurerequest,
256 [ConfigureNotify] = configurenotify, 253 [ConfigureNotify] = configurenotify,
257 [DestroyNotify] = destroynotify, 254 [DestroyNotify] = destroynotify,
@@ -1295,20 +1292,6 @@ propertynotify(XEvent *e) {
1295} 1292}
1296 1293
1297void 1294void
1298clientmessage(XEvent *e) {
1299 XClientMessageEvent *cme = &e->xclient;
1300
1301 if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
1302 if(cme->data.l[0])
1303 XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
1304 PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
1305 else
1306 XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
1307 PropModeReplace, (unsigned char*)0, 0);
1308 }
1309}
1310
1311void
1312quit(const Arg *arg) { 1295quit(const Arg *arg) {
1313 running = False; 1296 running = False;
1314} 1297}
@@ -1512,7 +1495,6 @@ setup(void) {
1512 netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); 1495 netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
1513 netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); 1496 netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
1514 netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False); 1497 netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False);
1515 netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
1516 /* init cursors */ 1498 /* init cursors */
1517 cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr); 1499 cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
1518 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); 1500 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);