Skip to content

Commit

Permalink
Improve readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Nov 9, 2024
1 parent a8eb0bc commit 1b7f114
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wmtaskbar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,10 @@ 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 we are near the corner, move this one bit, so
// that mouse events at the edge go to that window.
if (w - 1 == r.xx + r.ww)
r.xx++;

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

0 comments on commit 1b7f114

Please sign in to comment.