Skip to content

Commit 131f362

Browse files
committed
xf86-video-dummy: codestyle: avoid unnecessary indent
Fix codestyle of "Don't try to send grants for not realized windows" (0fc7bb1).
1 parent c635a39 commit 131f362

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

xf86-video-dummy/src/dummy_driver.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,18 +1093,20 @@ qubes_destroy_pixmap(PixmapPtr pixmap) {
10931093

10941094
static void
10951095
sendRealizedNotify(WindowPtr win, Bool unrealized) {
1096-
if (agentClient) {
1097-
xQVEWindowRealizedEvent e = {};
1098-
e.type = QVE->eventBase + QVEWindowRealized;
1099-
1100-
if (unrealized) {
1101-
e.detail |= QVEWindowRealizedDetailUnrealized;
1102-
}
1096+
if (!agentClient) {
1097+
return;
1098+
}
11031099

1104-
e.window = win->drawable.id;
1100+
xQVEWindowRealizedEvent e = {};
1101+
e.type = QVE->eventBase + QVEWindowRealized;
11051102

1106-
WriteEventsToClient(agentClient, 1, (xEvent *)&e);
1103+
if (unrealized) {
1104+
e.detail |= QVEWindowRealizedDetailUnrealized;
11071105
}
1106+
1107+
e.window = win->drawable.id;
1108+
1109+
WriteEventsToClient(agentClient, 1, (xEvent *)&e);
11081110
}
11091111

11101112
static Bool

0 commit comments

Comments
 (0)