mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
XQuartz: RandR: Provide an alert box when entering a RandR mode for the first time.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
13578b852b
commit
968652983f
4 changed files with 36 additions and 0 deletions
|
|
@ -40,6 +40,8 @@
|
|||
#include "quartz.h"
|
||||
#include "darwin.h"
|
||||
|
||||
#include "X11Application.h"
|
||||
|
||||
#include <AvailabilityMacros.h>
|
||||
|
||||
#include <X11/extensions/randr.h>
|
||||
|
|
@ -349,6 +351,8 @@ static Bool QuartzRandRSetMode(ScreenPtr pScreen, QuartzModeInfoPtr pMode, BOOL
|
|||
Bool captureDisplay = (pMode->refresh != FAKE_REFRESH_FULLSCREEN && pMode->refresh != FAKE_REFRESH_ROOTLESS);
|
||||
|
||||
if(XQuartzShieldingWindowLevel == 0 && captureDisplay) {
|
||||
if(!X11ApplicationCanEnterRandR())
|
||||
return FALSE;
|
||||
CGCaptureAllDisplays();
|
||||
XQuartzShieldingWindowLevel = CGShieldingWindowLevel(); // 2147483630
|
||||
DEBUG_LOG("Display captured. ShieldWindowID: %u, Shield level: %d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue