size fullscreen applications to the resolution with the VIDMODE extension
This commit is contained in:
parent
68cc6e30b8
commit
abd8ec3c2e
1 changed files with 8 additions and 1 deletions
|
@ -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 */
|
/* set the size and position if fullscreen */
|
||||||
if (self->fullscreen) {
|
if (self->fullscreen) {
|
||||||
#ifdef VIDMODE
|
#ifdef VIDMODE
|
||||||
|
int dot;
|
||||||
|
XF86VidModeModeLine mode;
|
||||||
|
|
||||||
XF86VidModeGetViewPort(ob_display, ob_screen, &x, &y);
|
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
|
#else
|
||||||
x = 0;
|
x = 0;
|
||||||
y = 0;
|
y = 0;
|
||||||
#endif
|
|
||||||
w = screen_physical_size.width;
|
w = screen_physical_size.width;
|
||||||
h = screen_physical_size.height;
|
h = screen_physical_size.height;
|
||||||
|
#endif
|
||||||
user = FALSE; /* ignore that increment etc shit when in fullscreen */
|
user = FALSE; /* ignore that increment etc shit when in fullscreen */
|
||||||
} else {
|
} else {
|
||||||
/* set the size and position if maximized */
|
/* set the size and position if maximized */
|
||||||
|
|
Loading…
Reference in a new issue