Skip to content

Commit

Permalink
Delay the allocation of the taskbar frame until after the layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 5, 2024
1 parent a0c887c commit 15da0e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/wmtaskbar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,6 @@ void TaskBar::updateFullscreen() {
void TaskBar::updateLocation() {
fNeedRelayout = false;

if (getFrame() == nullptr) {
showBar();
}
if (fIsHidden && !fIsCollapsed) {
if (getFrame() && visible())
getFrame()->wmHide();
Expand Down Expand Up @@ -752,6 +749,10 @@ void TaskBar::updateLocation() {
}
fEdgeTrigger->show((fFullscreen | fIsHidden) && !fIsCollapsed);

if (getFrame() == nullptr) {
showBar();
}

///!!! fix
updateWMHints();
}
Expand Down

0 comments on commit 15da0e9

Please sign in to comment.