all repos — openbox @ d7f3d16fb702aecb4ed3bf190204f43db0aac8f0

openbox fork - make it a bit more like ryudo

set the desktop hint after everything is read/setup even session stuff
Dana Jansens danakj@orodu.net
commit

d7f3d16fb702aecb4ed3bf190204f43db0aac8f0

parent

717d10f31a5247700f5303fc82bb4767661f5fd7

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -233,8 +233,13 @@ window */

self = g_new(ObClient, 1); self->obwin.type = Window_Client; self->window = window; + client_get_all(self); client_restore_session_state(self); + + /* set the desktop hint, to make sure that it always exists */ + PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop); + client_change_state(self); /* remove the client's border (and adjust re gravity) */

@@ -698,11 +703,6 @@ }

if (!trdesk) /* defaults to the current desktop */ self->desktop = screen_desktop; - - } - if (self->desktop != d) { - /* set the desktop hint, to make sure that it always exists */ - PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop); } }