Set properly the border width of a new window

This commit is contained in:
Arnaud Fontaine 2008-03-22 13:27:54 +00:00 committed by Julien Danjou
parent 4bd034f768
commit 3ea19aab12
1 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wa, int screen)
config_win_val = c->border = globalconf.screens[screen].borderpx; config_win_val = c->border = globalconf.screens[screen].borderpx;
xcb_configure_window(globalconf.connection, w, XCB_CONFIG_WINDOW_BORDER_WIDTH, xcb_configure_window(globalconf.connection, w, XCB_CONFIG_WINDOW_BORDER_WIDTH,
&config_win_val); &config_win_val);
xcb_configure_window(globalconf.connection, w, XCB_CONFIG_WINDOW_STACK_MODE, xcb_change_window_attributes(globalconf.connection, w, XCB_CW_BORDER_PIXEL,
&config_win_val); &config_win_val);
/* propagates border_width, if size doesn't change */ /* propagates border_width, if size doesn't change */
window_configure(c->win, c->geometry, c->border); window_configure(c->win, c->geometry, c->border);
@ -708,7 +708,7 @@ xcb_size_hints_t *
client_updatesizehints(Client *c) client_updatesizehints(Client *c)
{ {
long msize; long msize;
xcb_size_hints_t *size = NULL; xcb_size_hints_t *size = xcb_alloc_size_hints();
if(!xcb_get_wm_normal_hints(globalconf.connection, c->win, size, &msize) || if(!xcb_get_wm_normal_hints(globalconf.connection, c->win, size, &msize) ||
size == NULL) size == NULL)