]> Dogcows Code - chaz/openbox/commitdiff
size fullscreen applications to the resolution with the VIDMODE extension
authorDana Jansens <danakj@orodu.net>
Wed, 4 Jun 2003 23:19:06 +0000 (23:19 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Jun 2003 23:19:06 +0000 (23:19 +0000)
openbox/client.c

index f17d1bafa10ced0d955804a3c45ff102df7b7c45..450263843b5b09d243401a93c67aa542d96934ec 100644 (file)
@@ -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 */
This page took 0.02486 seconds and 4 git commands to generate.