diff options
| author | Anselm R Garbe <anselm@garbe.us> | 2010-05-29 12:48:11 +0100 |
|---|---|---|
| committer | Anselm R Garbe <anselm@garbe.us> | 2010-05-29 12:48:11 +0100 |
| commit | 5c6545adf5e2fc7011bd53735910f66998cade64 (patch) | |
| tree | 58a9a5fd83b154e38b6fdc3cc8d4fb7b8c4a8698 | |
| parent | Added tag 5.8 for changeset 60ea8fed13ab (diff) | |
| download | dwm-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.mk | 2 | ||||
| -rw-r--r-- | dwm.c | 20 |
2 files changed, 2 insertions, 20 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # dwm version | 1 | # dwm version |
| 2 | VERSION = 5.8 | 2 | VERSION = 5.8.1 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -57,8 +57,7 @@ | |||
| 57 | /* enums */ | 57 | /* enums */ |
| 58 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | 58 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
| 59 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ | 59 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
| 60 | enum { NetSupported, NetWMName, NetWMState, | 60 | enum { NetSupported, NetWMName, NetWMState, NetLast }; /* EWMH atoms */ |
| 61 | NetWMFullscreen, NetLast }; /* EWMH atoms */ | ||
| 62 | enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ | 61 | enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ |
| 63 | enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, | 62 | enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, |
| 64 | ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ | 63 | ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ |
| @@ -162,7 +161,6 @@ static void checkotherwm(void); | |||
| 162 | static void cleanup(void); | 161 | static void cleanup(void); |
| 163 | static void cleanupmon(Monitor *mon); | 162 | static void cleanupmon(Monitor *mon); |
| 164 | static void clearurgent(Client *c); | 163 | static void clearurgent(Client *c); |
| 165 | static void clientmessage(XEvent *e); | ||
| 166 | static void configure(Client *c); | 164 | static void configure(Client *c); |
| 167 | static void configurenotify(XEvent *e); | 165 | static void configurenotify(XEvent *e); |
| 168 | static void configurerequest(XEvent *e); | 166 | static void configurerequest(XEvent *e); |
| @@ -251,7 +249,6 @@ static int (*xerrorxlib)(Display *, XErrorEvent *); | |||
| 251 | static unsigned int numlockmask = 0; | 249 | static unsigned int numlockmask = 0; |
| 252 | static void (*handler[LASTEvent]) (XEvent *) = { | 250 | static 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 | ||
| 1297 | void | 1294 | void |
| 1298 | clientmessage(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 | |||
| 1311 | void | ||
| 1312 | quit(const Arg *arg) { | 1295 | quit(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); |
