add printf for when a window requests its desktop

This commit is contained in:
Dana Jansens 2003-01-24 01:38:39 +00:00
parent ab2968b3a5
commit f7f5f3d08c

View file

@ -129,9 +129,13 @@ void Client::getDesktop()
// defaults to the current desktop
_desktop = openbox->screen(_screen)->desktop();
otk::Property::get(_window, otk::Property::atoms.net_wm_desktop,
otk::Property::atoms.cardinal,
(long unsigned*)&_desktop);
if (otk::Property::get(_window, otk::Property::atoms.net_wm_desktop,
otk::Property::atoms.cardinal,
(long unsigned*)&_desktop)) {
#ifdef DEBUG
printf("DEBUG: Window requested desktop: %d\n", _desktop);
#endif
}
}