removing Sylvain's patch because it breaks more than it fixes unfortunately, re-issuing a bugfix release 5.8.1
5c6545ad
2 file(s) · +2 −20
| 1 | 1 | # dwm version |
|
| 2 | - | VERSION = 5.8 |
|
| 2 | + | VERSION = 5.8.1 |
|
| 3 | 3 | ||
| 4 | 4 | # Customize below to fit your system |
|
| 5 | 5 |
| 57 | 57 | /* enums */ |
|
| 58 | 58 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
|
| 59 | 59 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
|
| 60 | - | enum { NetSupported, NetWMName, NetWMState, |
|
| 61 | - | NetWMFullscreen, NetLast }; /* EWMH atoms */ |
|
| 60 | + | enum { NetSupported, NetWMName, NetWMState, NetLast }; /* EWMH atoms */ |
|
| 62 | 61 | enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ |
|
| 63 | 62 | enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, |
|
| 64 | 63 | ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ |
|
| 162 | 161 | static void cleanup(void); |
|
| 163 | 162 | static void cleanupmon(Monitor *mon); |
|
| 164 | 163 | static void clearurgent(Client *c); |
|
| 165 | - | static void clientmessage(XEvent *e); |
|
| 166 | 164 | static void configure(Client *c); |
|
| 167 | 165 | static void configurenotify(XEvent *e); |
|
| 168 | 166 | static void configurerequest(XEvent *e); |
|
| 251 | 249 | static unsigned int numlockmask = 0; |
|
| 252 | 250 | static void (*handler[LASTEvent]) (XEvent *) = { |
|
| 253 | 251 | [ButtonPress] = buttonpress, |
|
| 254 | - | [ClientMessage] = clientmessage, |
|
| 255 | 252 | [ConfigureRequest] = configurerequest, |
|
| 256 | 253 | [ConfigureNotify] = configurenotify, |
|
| 257 | 254 | [DestroyNotify] = destroynotify, |
|
| 1295 | 1292 | } |
|
| 1296 | 1293 | ||
| 1297 | 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 | 1295 | quit(const Arg *arg) { |
|
| 1313 | 1296 | running = False; |
|
| 1314 | 1297 | } |
|
| 1512 | 1495 | netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); |
|
| 1513 | 1496 | netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); |
|
| 1514 | 1497 | netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False); |
|
| 1515 | - | netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False); |
|
| 1516 | 1498 | /* init cursors */ |
|
| 1517 | 1499 | cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr); |
|
| 1518 | 1500 | cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); |
|