put transients on the current desktop when their parent is on all desktops
This commit is contained in:
parent
5ae7ccd8e3
commit
8874ec1fc4
1 changed files with 5 additions and 2 deletions
|
@ -1122,13 +1122,16 @@ static void client_get_desktop(ObClient *self)
|
||||||
self->desktop = screen_num_desktops - 1;
|
self->desktop = screen_num_desktops - 1;
|
||||||
else
|
else
|
||||||
self->desktop = d;
|
self->desktop = d;
|
||||||
|
ob_debug("client requested desktop 0x%x\n", self->desktop);
|
||||||
} else {
|
} else {
|
||||||
gboolean trdesk = FALSE;
|
gboolean trdesk = FALSE;
|
||||||
|
|
||||||
if (self->transient_for) {
|
if (self->transient_for) {
|
||||||
if (self->transient_for != OB_TRAN_GROUP) {
|
if (self->transient_for != OB_TRAN_GROUP) {
|
||||||
|
if (self->transient_for->desktop != DESKTOP_ALL) {
|
||||||
self->desktop = self->transient_for->desktop;
|
self->desktop = self->transient_for->desktop;
|
||||||
trdesk = TRUE;
|
trdesk = TRUE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/* if all the group is on one desktop, then open it on the
|
/* if all the group is on one desktop, then open it on the
|
||||||
same desktop */
|
same desktop */
|
||||||
|
|
Loading…
Reference in a new issue