diff options
Diffstat (limited to 'tools/virtual.c')
-rw-r--r-- | tools/virtual.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index ffac700b..ccd8c85e 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1901,13 +1901,13 @@ static int first_display_register_as_singleton(struct context *ctx) } while (XPending(display->dpy)) { - XPropertyEvent pe; + XEvent e; - XNextEvent(display->dpy, (XEvent *)&pe); - DBG(("%s: reading event type %d\n", DisplayString(display->dpy), pe.type)); + XNextEvent(display->dpy, &e); + DBG(("%s: reading event type %d\n", DisplayString(display->dpy), e.type)); - if (pe.type == PropertyNotify && - pe.atom == ctx->singleton) + if (e.type == PropertyNotify && + ((XPropertyEvent *)&e)->atom == ctx->singleton) return 0; } } while (1); |