commit d28e0bf

Michael Forney  ·  2014-01-23 01:17:29 +0000 UTC
parent 265b491
xwm: Set X border width to 0 when managing windows

This way, if X clients like xclock set their own border width, we don't
end up with the X border as well as the swc border.
1 files changed,  +3, -0
+3, -0
 1@@ -358,6 +358,9 @@ void swc_xwm_manage_window(xcb_window_t id, struct swc_surface * surface)
 2         mask = XCB_CW_EVENT_MASK;
 3         values[0] = XCB_EVENT_MASK_PROPERTY_CHANGE;
 4         xcb_change_window_attributes(xwm.connection, id, mask, values);
 5+        mask = XCB_CONFIG_WINDOW_BORDER_WIDTH;
 6+        values[0] = 0;
 7+        xcb_configure_window(xwm.connection, id, mask, values);
 8         update_name(xwl_window);
 9 
10         swc_window_set_state(&xwl_window->window.base,