aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/randr/randr.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/randr/randr.c')
-rw-r--r--xorg-server/randr/randr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/xorg-server/randr/randr.c b/xorg-server/randr/randr.c
index ad1dda227..24a2deadb 100644
--- a/xorg-server/randr/randr.c
+++ b/xorg-server/randr/randr.c
@@ -437,15 +437,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);
}