commit - a704b1ee34dd84fa5ba65ed1981eb3a69bf8633f
commit + 5c6545adf5e2fc7011bd53735910f66998cade64
blob - 303984dadbda58292653bb6b76bb9f8477b4688b
blob + df7194bdd53f1f13c4101455fe0f2c5a30747327
--- config.mk
+++ config.mk
# dwm version
-VERSION = 5.8
+VERSION = 5.8.1
# Customize below to fit your system
blob - fedf069dcf4c8666a98443881a74ca422c6338ea
blob + 5df4919ec073579cfccfb4edd87402e186f6d938
--- dwm.c
+++ dwm.c
/* enums */
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
-enum { NetSupported, NetWMName, NetWMState,
- NetWMFullscreen, NetLast }; /* EWMH atoms */
+enum { NetSupported, NetWMName, NetWMState, NetLast }; /* EWMH atoms */
enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
static void cleanup(void);
static void cleanupmon(Monitor *mon);
static void clearurgent(Client *c);
-static void clientmessage(XEvent *e);
static void configure(Client *c);
static void configurenotify(XEvent *e);
static void configurerequest(XEvent *e);
static unsigned int numlockmask = 0;
static void (*handler[LASTEvent]) (XEvent *) = {
[ButtonPress] = buttonpress,
- [ClientMessage] = clientmessage,
[ConfigureRequest] = configurerequest,
[ConfigureNotify] = configurenotify,
[DestroyNotify] = destroynotify,
}
void
-clientmessage(XEvent *e) {
- XClientMessageEvent *cme = &e->xclient;
-
- if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
- if(cme->data.l[0])
- XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
- PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
- else
- XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
- PropModeReplace, (unsigned char*)0, 0);
- }
-}
-
-void
quit(const Arg *arg) {
running = False;
}
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False);
- netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
/* init cursors */
cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);