all repos — openbox @ cf276fafd853356a71fb99e0c60a08c034b0d537

openbox fork - make it a bit more like ryudo

Fix Java apps always appearing on desktop 0.

Fake managing a window doesn't read a requested desktop, but ended up placing
  a NET_WM_DESKTOP hint on the window (with value 0).  Fake managing doesn't
  need to set the DESKTOP hint since the window is not actually being managed,
  so remove it from the codepath.
Dana Jansens danakj@orodu.net
commit

cf276fafd853356a71fb99e0c60a08c034b0d537

parent

823997f0011b0c948ebd9d3a3b155884a336ed2f

1 files changed, 4 insertions(+), 3 deletions(-)

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

@@ -437,6 +437,10 @@ */

client_apply_startup_state(self, place.x, place.y, place.width, place.height); + /* set the initial value of the desktop hint, when one wasn't requested + on map. */ + OBT_PROP_SET32(self->window, NET_WM_DESKTOP, CARDINAL, self->desktop); + /* grab mouse bindings before showing the window */ mouse_grab_for_client(self, TRUE);

@@ -2791,9 +2795,6 @@ not, so this needs to be called even if we have fullscreened/maxed

*/ self->area = oldarea; client_configure(self, x, y, w, h, FALSE, TRUE, FALSE); - - /* set the desktop hint, to make sure that it always exists */ - OBT_PROP_SET32(self->window, NET_WM_DESKTOP, CARDINAL, self->desktop); /* nothing to do for the other states: skip_taskbar