Change to the 1.3 part of the Xrandr api for fullscreen mode switching on linux to support multiple monitor setups. There is probably some more work to be done, but at least it won't shut off one of your monitors anymore.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7121 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2011-02-09 03:12:05 +00:00
parent 0c188bfceb
commit edfb62a41f
22 changed files with 8075 additions and 7913 deletions

View File

@ -36,9 +36,9 @@
// EWMH state actions, see
// http://freedesktop.org/wiki/Specifications/wm-spec?action=show&redirect=Standards%2Fwm-spec
#define _NET_WM_STATE_REMOVE 0 /* remove/unset property */
#define _NET_WM_STATE_ADD 1 /* add/set property */
#define _NET_WM_STATE_TOGGLE 2 /* toggle property */
#define _NET_WM_STATE_REMOVE 0 // remove/unset property
#define _NET_WM_STATE_ADD 1 // add/set property
#define _NET_WM_STATE_TOGGLE 2 // toggle property
namespace X11Utils
{
@ -74,10 +74,15 @@ class XRRConfiguration
private:
Display *dpy;
Window win;
XRRScreenConfiguration *screenConfig;
Rotation screenRotation;
int deskSize, fullSize;
int screen;
XRRScreenResources *screenResources;
XRROutputInfo *outputInfo;
XRRCrtcInfo *crtcInfo;
RRMode fullMode;
int fb_width, fb_height, fb_width_mm, fb_height_mm;
int fs_fb_width, fs_fb_height, fs_fb_width_mm, fs_fb_height_mm;
bool bValid;
bool bIsFullscreen;
};
#endif