summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-06-04 23:19:06 +0000
committerDana Jansens <danakj@orodu.net>2003-06-04 23:19:06 +0000
commitabd8ec3c2e022d271b69672630caa07a72a07a93 (patch)
treea1dee275aa43ed844594642c5615b6be74308124
parent68cc6e30b8d985d95016668a29aa273a75ce6d44 (diff)
size fullscreen applications to the resolution with the VIDMODE extension
-rw-r--r--openbox/client.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index f17d1baf..45026384 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1610,13 +1610,20 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
/* set the size and position if fullscreen */
if (self->fullscreen) {
#ifdef VIDMODE
+ int dot;
+ XF86VidModeModeLine mode;
+
XF86VidModeGetViewPort(ob_display, ob_screen, &x, &y);
+ XF86VidModeGetModeLine(ob_display, ob_screen, &dot, &mode);
+ w = mode.hdisplay;
+ h = mode.vdisplay;
+ if (mode.privsize) XFree(mode.private);
#else
x = 0;
y = 0;
-#endif
w = screen_physical_size.width;
h = screen_physical_size.height;
+#endif
user = FALSE; /* ignore that increment etc shit when in fullscreen */
} else {
/* set the size and position if maximized */