swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit d28e0bfa5e6c83fca8562f679af9daf096922f97
parent 265b4918c6fb5c5899aab52f11b590cf53912214
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 22 Jan 2014 17:17:29 -0800

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.

Diffstat:
Mlibswc/xwm.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/libswc/xwm.c b/libswc/xwm.c @@ -358,6 +358,9 @@ void swc_xwm_manage_window(xcb_window_t id, struct swc_surface * surface) mask = XCB_CW_EVENT_MASK; values[0] = XCB_EVENT_MASK_PROPERTY_CHANGE; xcb_change_window_attributes(xwm.connection, id, mask, values); + mask = XCB_CONFIG_WINDOW_BORDER_WIDTH; + values[0] = 0; + xcb_configure_window(xwm.connection, id, mask, values); update_name(xwl_window); swc_window_set_state(&xwl_window->window.base,