Skip to content

Commit a8e9c6f

Browse files
committed
WorkArea: use screen dimensions to compute area
When working out the working area for a desktop, use the monitor's coordinates (width/height) and not the XServer's display width or height as these will differ. Fixes GH issue #52
1 parent 4f5cfc4 commit a8e9c6f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fvwm/ewmh.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -991,11 +991,8 @@ void ewmh_ComputeAndSetWorkArea(struct monitor *m)
991991

992992
x = left;
993993
y = top;
994-
width = (m->virtual_scr.MyDisplayWidth) - (left + right);
995-
height =(m->virtual_scr.MyDisplayHeight) - (top + bottom);
996-
997-
if (width == 0)
998-
width = m->si->w;
994+
width = (m->si->w) - (left + right);
995+
height =(m->si->h) - (top + bottom);
999996

1000997
if (
1001998
m->Desktops->ewmh_working_area.x != x ||

0 commit comments

Comments
 (0)