Skip to content

Commit

Permalink
Force the taskbar on the XineramaPrimaryScreen for issue ice-wm/icewm…
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 2, 2024
1 parent 92a62ee commit 617b375
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 @@ -692,7 +692,10 @@ void TaskBar::updateLocation() {

int dx, dy;
unsigned dw, dh;
desktop->getScreenGeometry(&dx, &dy, &dw, &dh, -1);
int screen =
inrange(xineramaPrimaryScreen, 0, desktop->getScreenCount() - 1)
? xineramaPrimaryScreen : -1;
desktop->getScreenGeometry(&dx, &dy, &dw, &dh, screen);

int x = dx;
unsigned int w = 0;
Expand Down

0 comments on commit 617b375

Please sign in to comment.