only map on a requested desktop if its not out of range
This commit is contained in:
parent
c29a1f1430
commit
fb1c1a8163
1 changed files with 4 additions and 1 deletions
|
@ -151,10 +151,13 @@ void Client::getDesktop()
|
|||
{
|
||||
// defaults to the current desktop
|
||||
_desktop = openbox->screen(_screen)->desktop();
|
||||
unsigned int d;
|
||||
|
||||
if (otk::Property::get(_window, otk::Property::atoms.net_wm_desktop,
|
||||
otk::Property::atoms.cardinal,
|
||||
(long unsigned*)&_desktop)) {
|
||||
(long unsigned*)&d) &&
|
||||
d < openbox->screen(_screen)->numDesktops()) {
|
||||
_desktop = d;
|
||||
#ifdef DEBUG
|
||||
// printf("Window requested desktop: %ld\n", _desktop);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue