From: Dana Jansens Date: Mon, 28 May 2007 00:05:51 +0000 (+0000) Subject: put transients on the current desktop when their parent is on all desktops X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8874ec1fc4a142ea67d7c5a45ae9ea92ffdec5ea;p=chaz%2Fopenbox put transients on the current desktop when their parent is on all desktops --- diff --git a/openbox/client.c b/openbox/client.c index 3f891b5a..dbbba7de 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1122,13 +1122,16 @@ static void client_get_desktop(ObClient *self) self->desktop = screen_num_desktops - 1; else self->desktop = d; + ob_debug("client requested desktop 0x%x\n", self->desktop); } else { gboolean trdesk = FALSE; if (self->transient_for) { if (self->transient_for != OB_TRAN_GROUP) { - self->desktop = self->transient_for->desktop; - trdesk = TRUE; + if (self->transient_for->desktop != DESKTOP_ALL) { + self->desktop = self->transient_for->desktop; + trdesk = TRUE; + } } else { /* if all the group is on one desktop, then open it on the same desktop */