summaryrefslogtreecommitdiff
path: root/hw/xquartz/darwinEvents.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-01-13 17:12:17 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2011-01-23 22:39:14 -0800
commit418bb57a3923311338baa8a85c0794a72e15ceeb (patch)
treeec22454fca6d4a627df38ab6eb7565fe1ff6e889 /hw/xquartz/darwinEvents.c
parent6f52b10b9e8068e3deafb2bbb64b62175a208c49 (diff)
XQuartz: Call RRScreenSizeNotify after handling externally-generated XP_EVENT_DISPLAY_CHANGED
We get an XP_EVENT_DISPLAY_CHANGED event when our display configuration is changed. If this change was caused by hotplugging a monitor or Mac Display Preferences changes by the user, we need to call RRScreenSizeNotify in order to ensure new connections get the correct screen size. http://xquartz.macosforge.org/trac/ticket/460 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'hw/xquartz/darwinEvents.c')
-rw-r--r--hw/xquartz/darwinEvents.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c
index 9e03525b0..16fec4a01 100644
--- a/hw/xquartz/darwinEvents.c
+++ b/hw/xquartz/darwinEvents.c
@@ -280,10 +280,9 @@ static void DarwinEventHandler(int screenNum, InternalEvent *ie, DeviceIntPtr de
case kXquartzDisplayChanged:
DEBUG_LOG("kXquartzDisplayChanged\n");
QuartzUpdateScreens();
-#ifdef RANDR
+
/* Update our RandR info */
QuartzRandRUpdateFakeModes(TRUE);
-#endif
break;
default: