Skip to content

Commit

Permalink
Make clicks in the corner effective to ShowDesktop button in right-pl…
Browse files Browse the repository at this point in the history
…aced mode
  • Loading branch information
Code7R committed Oct 29, 2024
1 parent 0f927a3 commit 50bfe14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wmtaskbar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ void TaskBar::updateLayout(unsigned &size_w, unsigned &size_h) {
wlist.append(nw);

if (taskBarShowShowDesktopButton == 2) {
nw = LayoutInfo( fShowDesktop, Over, Top, Show, Keep, 1, 1);
nw = LayoutInfo( fShowDesktop, Over, Top, Show, Grow, 1, 1);
wlist.append(nw);
}

Expand Down Expand Up @@ -596,6 +596,9 @@ void TaskBar::updateLayout(unsigned &size_w, unsigned &size_h) {
right[wlist[i].row] -= ww + wlist[i].pre + wlist[i].post;
}
YRect r(xx, yy, ww, hh);
// if we are in the corner,move this a bit so that mouse events at the edge receive that window
r.xx += (w - r.ww - r.xx == 1);

if (rightToLeft) {
r.xx = w - r.xx - r.ww;
}
Expand Down

0 comments on commit 50bfe14

Please sign in to comment.