xcb: use default member initialization in struct
... for better localization. This is not possible in C, but in C++ a struct has the same features as a class. Thus, use default member initialization feature (available since C++11). Change-Id: I91522c3a4fe4270c37bb6e85fddeb5970a847352 Reviewed-by: Alexander Volkov <a.volkov@rusbitech.ru> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
f948f96e91
commit
0cd54e3cec
@ -653,7 +653,7 @@ private:
|
||||
QHash<int, TouchDeviceData> m_touchDevices;
|
||||
#ifdef XCB_USE_XINPUT22
|
||||
struct StartSystemResizeInfo {
|
||||
xcb_window_t window;
|
||||
xcb_window_t window = XCB_NONE;
|
||||
uint16_t deviceid;
|
||||
uint32_t pointid;
|
||||
Qt::Corner corner;
|
||||
|
@ -78,9 +78,6 @@ void QXcbConnection::initializeXInput2()
|
||||
// X server's supported version.
|
||||
qCDebug(lcQpaXInput, "Using XInput version %d.%d", xiMajor, m_xi2Minor);
|
||||
m_xi2Enabled = true;
|
||||
#ifdef XCB_USE_XINPUT22
|
||||
m_startSystemResizeInfo.window = XCB_NONE;
|
||||
#endif
|
||||
xi2SetupDevices();
|
||||
break;
|
||||
case BadRequest: // Must be an X server with XInput 1
|
||||
|
Loading…
Reference in New Issue
Block a user