mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
XQuartz: RandR: Respond better to resolution changes made outside X
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
59cd93f48a
commit
026a47e212
5 changed files with 135 additions and 93 deletions
|
|
@ -52,6 +52,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include "darwin.h"
|
||||
#include "quartz.h"
|
||||
#include "quartzKeyboard.h"
|
||||
#include "quartzRandR.h"
|
||||
#include "darwinEvents.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
@ -276,7 +277,12 @@ static void DarwinEventHandler(int screenNum, InternalEvent *ie, DeviceIntPtr de
|
|||
break;
|
||||
|
||||
case kXquartzDisplayChanged:
|
||||
DEBUG_LOG("kXquartzDisplayChanged\n");
|
||||
QuartzUpdateScreens();
|
||||
#ifdef RANDR
|
||||
/* Update our RandR info */
|
||||
QuartzRandRUpdateFakeModes(TRUE);
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue