diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2019-04-16 21:18:38 +0200 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2019-04-16 21:20:46 +0200 |
commit | 27aa2c7a6f978b2b4485b3241daa3580eb2edd63 (patch) | |
tree | 1289f992a36264935de3e309417dc4f3a6732581 /src/netwm.c | |
parent | f6adaf3b14406e86cad1a49cb84528bfa26f8e0a (diff) | |
download | xfwm4-27aa2c7a6f978b2b4485b3241daa3580eb2edd63.tar.gz |
screen: Remove logical size
Bug: 15085
We used to keep a logical screen size based on whatever Xlib would
provide, and an actual size based on what we compute based on the actual
monitor layout.
There might be some discrepancies between the two, so let's just get rid
of the logical size.
Diffstat (limited to 'src/netwm.c')
-rw-r--r-- | src/netwm.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/netwm.c b/src/netwm.c index 732414c1b..241f8e868 100644 --- a/src/netwm.c +++ b/src/netwm.c @@ -969,29 +969,29 @@ clientValidateNetStrut (Client * c) screen_info = c->screen_info; valid = TRUE; - if (c->struts[STRUTS_TOP] > screen_info->logical_height - screen_info->margins[STRUTS_BOTTOM]) + if (c->struts[STRUTS_TOP] > screen_info->height - screen_info->margins[STRUTS_BOTTOM]) { - c->struts[STRUTS_TOP] = screen_info->logical_height - screen_info->margins[STRUTS_BOTTOM]; + c->struts[STRUTS_TOP] = screen_info->height - screen_info->margins[STRUTS_BOTTOM]; g_warning ("Top strut value for application window 0x%lx confined to %d", c->window, c->struts[STRUTS_TOP]); valid = FALSE; } - if (c->struts[STRUTS_BOTTOM] > screen_info->logical_height - screen_info->margins[STRUTS_TOP]) + if (c->struts[STRUTS_BOTTOM] > screen_info->height - screen_info->margins[STRUTS_TOP]) { - c->struts[STRUTS_BOTTOM] = screen_info->logical_height - screen_info->margins[STRUTS_TOP]; + c->struts[STRUTS_BOTTOM] = screen_info->height - screen_info->margins[STRUTS_TOP]; g_warning ("Bottom strut value for application window 0x%lx confined to %d", c->window, c->struts[STRUTS_BOTTOM]); valid = FALSE; } - if (c->struts[STRUTS_LEFT] > screen_info->logical_width - screen_info->margins[STRUTS_RIGHT]) + if (c->struts[STRUTS_LEFT] > screen_info->width - screen_info->margins[STRUTS_RIGHT]) { - c->struts[STRUTS_LEFT] = screen_info->logical_height - screen_info->margins[STRUTS_RIGHT]; + c->struts[STRUTS_LEFT] = screen_info->height - screen_info->margins[STRUTS_RIGHT]; g_warning ("Left strut value for application window 0x%lx confined to %d", c->window, c->struts[STRUTS_LEFT]); valid = FALSE; } - if (c->struts[STRUTS_RIGHT] > screen_info->logical_width - screen_info->margins[STRUTS_LEFT]) + if (c->struts[STRUTS_RIGHT] > screen_info->width - screen_info->margins[STRUTS_LEFT]) { - c->struts[STRUTS_RIGHT] = screen_info->logical_height - screen_info->margins[STRUTS_LEFT]; + c->struts[STRUTS_RIGHT] = screen_info->height - screen_info->margins[STRUTS_LEFT]; g_warning ("Right strut value for application window 0x%lx confined to %d", c->window, c->struts[STRUTS_RIGHT]); valid = FALSE; } @@ -1088,10 +1088,10 @@ clientGetNetStruts (Client * c) /* Fill(in values as for partial struts */ c->struts[STRUTS_TOP_START_X] = c->struts[STRUTS_BOTTOM_START_X] = 0; c->struts[STRUTS_TOP_END_X] = c->struts[STRUTS_BOTTOM_END_X] = - c->screen_info->logical_width; + c->screen_info->width; c->struts[STRUTS_LEFT_START_Y] = c->struts[STRUTS_RIGHT_START_Y] = 0; c->struts[STRUTS_LEFT_END_Y] = c->struts[STRUTS_RIGHT_END_Y] = - c->screen_info->logical_height; + c->screen_info->height; XFree (struts); } |