X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=5df4919ec073579cfccfb4edd87402e186f6d938;hp=3b18b2b28a42c53078d50db5d7f66585e189434c;hb=5c6545adf5e2fc7011bd53735910f66998cade64;hpb=c6180949a759e936e57d7ec9d4cfee3379a39cef diff --git a/dwm.c b/dwm.c index 3b18b2b..5df4919 100644 --- a/dwm.c +++ b/dwm.c @@ -57,8 +57,7 @@ /* 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 */ @@ -162,7 +161,6 @@ static void checkotherwm(void); 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); @@ -251,7 +249,6 @@ static int (*xerrorxlib)(Display *, XErrorEvent *); static unsigned int numlockmask = 0; static void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, - [ClientMessage] = clientmessage, [ConfigureRequest] = configurerequest, [ConfigureNotify] = configurenotify, [DestroyNotify] = destroynotify, @@ -1295,20 +1292,6 @@ propertynotify(XEvent *e) { } 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; } @@ -1406,21 +1389,6 @@ restack(Monitor *m) { void run(void) { XEvent ev; - static const char *evname[LASTEvent] = { - [ButtonPress] = "buttonpress", - [ClientMessage] = "clientmessage", - [ConfigureRequest] = "configurerequest", - [ConfigureNotify] = "configurenotify", - [DestroyNotify] = "destroynotify", - [EnterNotify] = "enternotify", - [Expose] = "expose", - [FocusIn] = "focusin", - [KeyPress] = "keypress", - [MappingNotify] = "mappingnotify", - [MapRequest] = "maprequest", - [PropertyNotify] = "propertynotify", - [UnmapNotify] = "unmapnotify" - }; /* main event loop */ XSync(dpy, False); while(running && !XNextEvent(dpy, &ev)) { @@ -1527,7 +1495,6 @@ setup(void) { 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); @@ -2036,7 +2003,7 @@ zoom(const Arg *arg) { int main(int argc, char *argv[]) { if(argc == 2 && !strcmp("-v", argv[1])) - die("dwm-"VERSION", © 2006-2009 dwm engineers, see LICENSE for details\n"); + die("dwm-"VERSION", © 2006-2010 dwm engineers, see LICENSE for details\n"); else if(argc != 1) die("usage: dwm [-v]\n"); if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())