diff --git a/src/client.cc b/src/client.cc index 473c37f8..f0266bce 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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 + } }