From: David Hill Date: Fri, 13 Jul 2012 01:56:33 +0000 (-0400) Subject: switch one remaining XUnmapWindow to xcb. Change a few Xlib defines to XCB X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=644123db12a9cf597a4d4990d9d7077ebbe47061;p=spectrwm.git switch one remaining XUnmapWindow to xcb. Change a few Xlib defines to XCB --- diff --git a/spectrwm.c b/spectrwm.c index a9aa77c..cdaaebc 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -7193,8 +7193,8 @@ propertynotify(XEvent *e) XMoveResizeWindow(display, win->id, X(win), Y(win), WIDTH(win), HEIGHT(win)); #endif - case XA_WM_CLASS: - case XA_WM_NAME: + case XCB_ATOM_WM_CLASS: + case XCB_ATOM_WM_NAME: bar_update(); break; default: @@ -7231,7 +7231,7 @@ unmapnotify(XEvent *e) SubstructureNotifyMask, &cne)) ; /* resend unmap because we ated it */ - XUnmapWindow(display, e->xunmap.window); + xcb_unmap_window(conn, e->xunmap.window); } if (focus_mode == SWM_FOCUS_DEFAULT)