Skip to content

Commit

Permalink
Also update DockApps container when downsizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Jul 6, 2024
1 parent 3e63422 commit ce6ba58
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/wmdock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ bool DockApp::dock(YFrameClient* client) {
retime();
if (layered == WinLayerInvalid)
setup();
if (layered == WinLayerDock) {
extern bool limitByDockLayer;
if (limitByDockLayer)
manager->requestWorkAreaUpdate();
}
}
else {
XRemoveFromSaveSet(xapp->display(), icon);
Expand Down Expand Up @@ -271,6 +266,7 @@ bool DockApp::handleTimer(YTimer* t) {
}

void DockApp::adapt() {
const unsigned wold = int(visible()) * width();
if (docks.nonempty()) {
int sx, sy;
unsigned sw, sh;
Expand Down Expand Up @@ -346,6 +342,12 @@ void DockApp::adapt() {
}
if (timer)
timer = null;

if (wold != int(visible()) * width() && layered == WinLayerDock) {
extern bool limitByDockLayer;
if (limitByDockLayer)
manager->requestWorkAreaUpdate();
}
}

void DockApp::proper() {
Expand Down

0 comments on commit ce6ba58

Please sign in to comment.