add debug prints
This commit is contained in:
parent
4cf8fd5c23
commit
7c6050b6f5
1 changed files with 9 additions and 1 deletions
|
@ -1123,16 +1123,24 @@ static void client_get_desktop(ObClient *self)
|
||||||
}
|
}
|
||||||
if (all != screen_num_desktops) {
|
if (all != screen_num_desktops) {
|
||||||
self->desktop = all;
|
self->desktop = all;
|
||||||
|
|
||||||
|
ob_debug("client desktop set from parents: 0x%x\n",
|
||||||
|
self->desktop);
|
||||||
}
|
}
|
||||||
/* try get from the startup-notification protocol */
|
/* try get from the startup-notification protocol */
|
||||||
else if (sn_get_desktop(self->startup_id, &self->desktop)) {
|
else if (sn_get_desktop(self->startup_id, &self->desktop)) {
|
||||||
if (self->desktop >= screen_num_desktops &&
|
if (self->desktop >= screen_num_desktops &&
|
||||||
self->desktop != DESKTOP_ALL)
|
self->desktop != DESKTOP_ALL)
|
||||||
self->desktop = screen_num_desktops - 1;
|
self->desktop = screen_num_desktops - 1;
|
||||||
|
ob_debug("client desktop set from startup-notification: 0x%x\n",
|
||||||
|
self->desktop);
|
||||||
}
|
}
|
||||||
/* defaults to the current desktop */
|
/* defaults to the current desktop */
|
||||||
else
|
else {
|
||||||
self->desktop = screen_desktop;
|
self->desktop = screen_desktop;
|
||||||
|
ob_debug("client desktop set to the current desktop: %d\n",
|
||||||
|
self->desktop);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue