From 644123db12a9cf597a4d4990d9d7077ebbe47061 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 12 Jul 2012 21:56:33 -0400 Subject: [PATCH] switch one remaining XUnmapWindow to xcb. Change a few Xlib defines to XCB --- spectrwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 1.7.10.4