notify the frame when the desktop changes
This commit is contained in:
parent
23cc9e0546
commit
939e7887ce
1 changed files with 1 additions and 6 deletions
|
@ -83,7 +83,6 @@ Client::Client(int screen, Window window)
|
||||||
// any changes we've made here
|
// any changes we've made here
|
||||||
otk::Property::set(_window, otk::Property::atoms.net_wm_desktop,
|
otk::Property::set(_window, otk::Property::atoms.net_wm_desktop,
|
||||||
otk::Property::atoms.cardinal, (unsigned)_desktop);
|
otk::Property::atoms.cardinal, (unsigned)_desktop);
|
||||||
|
|
||||||
changeState();
|
changeState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -750,14 +749,12 @@ void Client::setDesktop(unsigned int target)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_desktop = target;
|
_desktop = target;
|
||||||
|
|
||||||
// set the desktop hint
|
// set the desktop hint
|
||||||
otk::Property::set(_window, otk::Property::atoms.net_wm_desktop,
|
otk::Property::set(_window, otk::Property::atoms.net_wm_desktop,
|
||||||
otk::Property::atoms.cardinal, _desktop);
|
otk::Property::atoms.cardinal, _desktop);
|
||||||
|
frame->adjustState(); // the frame can display the current desktop state
|
||||||
// 'move' the window to the new desktop
|
// 'move' the window to the new desktop
|
||||||
showhide();
|
showhide();
|
||||||
|
|
||||||
openbox->screen(_screen)->updateStruts();
|
openbox->screen(_screen)->updateStruts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1580,9 +1577,7 @@ void Client::iconify(bool iconic, bool curdesk)
|
||||||
XMapWindow(**otk::display, _window);
|
XMapWindow(**otk::display, _window);
|
||||||
}
|
}
|
||||||
changeState();
|
changeState();
|
||||||
|
|
||||||
showhide();
|
showhide();
|
||||||
|
|
||||||
openbox->screen(_screen)->updateStruts();
|
openbox->screen(_screen)->updateStruts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue