equal
deleted
inserted
replaced
23 #if SDL_VIDEO_DRIVER_X11 |
23 #if SDL_VIDEO_DRIVER_X11 |
24 |
24 |
25 #include "SDL_hints.h" |
25 #include "SDL_hints.h" |
26 #include "SDL_x11video.h" |
26 #include "SDL_x11video.h" |
27 |
27 |
28 #define X11MODES_DEBUG |
28 /*#define X11MODES_DEBUG*/ |
29 |
29 |
30 /* I'm becoming more and more convinced that the application should never use XRandR, |
30 /* I'm becoming more and more convinced that the application should never |
31 * and it's the window manager's responsibility to track and manage display modes for |
31 * use XRandR, and it's the window manager's responsibility to track and |
32 * fullscreen windows. Right now XRandR is completely broken with respect to window |
32 * manage display modes for fullscreen windows. Right now XRandR is completely |
33 * manager behavior on every window manager that I can find. For example, on Unity 3D |
33 * broken with respect to window manager behavior on every window manager that |
34 * if you show a fullscreen window while the resolution is changing (within ~250 ms) |
34 * I can find. For example, on Unity 3D if you show a fullscreen window while |
35 * your window will retain the fullscreen state hint but be decorated and windowed. |
35 * the resolution is changing (within ~250 ms) your window will retain the |
|
36 * fullscreen state hint but be decorated and windowed. |
36 */ |
37 */ |
37 #define XRANDR_DISABLED_BY_DEFAULT |
38 #define XRANDR_DISABLED_BY_DEFAULT |
38 |
39 |
39 |
40 |
40 static int |
41 static int |