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:
Jeremy Huddleston 2011-02-08 12:26:35 -08:00
commit 968652983f
4 changed files with 36 additions and 0 deletions

View file

@ -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",