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.
This commit is contained in:
Dana Jansens 2011-05-13 15:48:53 -04:00
parent 823997f001
commit cf276fafd8

View file

@ -437,6 +437,10 @@ void client_manage(Window window, ObPrompt *prompt)
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);
@ -2792,9 +2796,6 @@ static void client_apply_startup_state(ObClient *self,
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
skip_pager