diff options
Diffstat (limited to 'xorg-server/randr/randr.c')
-rw-r--r-- | xorg-server/randr/randr.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/xorg-server/randr/randr.c b/xorg-server/randr/randr.c index 3c97714d8..19b430721 100644 --- a/xorg-server/randr/randr.c +++ b/xorg-server/randr/randr.c @@ -433,15 +433,16 @@ static void RRDeliverResourceEvent(ClientPtr client, WindowPtr pWin) { ScreenPtr pScreen = pWin->drawable.pScreen; + xRRResourceChangeNotifyEvent re; rrScrPriv(pScreen); - xRRResourceChangeNotifyEvent re = { - .type = RRNotify + RREventBase, - .subCode = RRNotify_ResourceChange, - .timestamp = pScrPriv->lastSetTime.milliseconds, - .window = pWin->drawable.id - }; + + re.type = RRNotify + RREventBase; + re.subCode = RRNotify_ResourceChange; + re.timestamp = pScrPriv->lastSetTime.milliseconds; + re.window = pWin->drawable.id; + WriteEventsToClient(client, 1, (xEvent *) &re); } |