From a5afa009dc93c615bc9d44b36c3a107e328c0f16 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 1 Aug 2010 11:18:37 +0200 Subject: [PATCH] Remove a client window's own border If a client sets its own border on its window, the results look broken. This was found via xev by Gregor Best, thanks. Signed-off-by: Uli Schlachter --- objects/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/objects/client.c b/objects/client.c index 9ab083e7..e7d60111 100644 --- a/objects/client.c +++ b/objects/client.c @@ -484,6 +484,11 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, xcb_map_window(globalconf.connection, w); luaA_object_emit_signal(globalconf.L, -1, "property::window", 0); + /* The frame window gets the border, not the real client window */ + xcb_configure_window(globalconf.connection, w, + XCB_CONFIG_WINDOW_BORDER_WIDTH, + (uint32_t[]) { 0 }); + /* Move this window to the bottom of the stack. Without this we would force * other windows which will be above this one to redraw themselves because * this window occludes them for a tiny moment. The next stack_refresh()