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: diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index 6c185a8eb..156de1395 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -244,6 +244,9 @@ void QuartzUpdateScreens(void) { DeliverEvents(pRoot, &e, 1, NullWindow); quartzProcs->UpdateScreen(pScreen); + + /* Tell RandR about the new size, so new connections get the correct info */ + RRScreenSizeNotify(pScreen); } static void pokeActivityCallback(CFRunLoopTimerRef timer, void *info) {