diff options
author | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2016-03-14 10:07:20 +0100 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-03-15 19:58:40 +0000 |
commit | 6c53f2528c86fb72f19951a799f0afaa02ad4490 (patch) | |
tree | bbde9663f29da18afa73b018bb787b2f67323914 /src/plugins/platforms/xcb/qxcbscreen.cpp | |
parent | e4c6d73f925671a9c96558293472ed213861239c (diff) |
xcb: Initialize all xcb_client_message_event_t members before use
Change-Id: I01e4b69b138fd19fc7e67751d93adebc1326b2f9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbscreen.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbscreen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp index 1a90f824fc..f74244e13c 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.cpp +++ b/src/plugins/platforms/xcb/qxcbscreen.cpp @@ -361,6 +361,7 @@ void QXcbScreen::sendStartupMessage(const QByteArray &message) const ev.response_type = XCB_CLIENT_MESSAGE; ev.format = 8; ev.type = connection()->atom(QXcbAtom::_NET_STARTUP_INFO_BEGIN); + ev.sequence = 0; ev.window = rootWindow; int sent = 0; int length = message.length() + 1; // include NUL byte |