diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-07-14 10:27:12 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-07-14 15:01:39 +0000 |
commit | 5dc8c4286e0870ccf408f619302ee10f7b08d9b6 (patch) | |
tree | e1480c6f9ec6b911dd50b50014e48d0d7569da65 /src/plugins/platforms/xcb | |
parent | caa4ead1b950ccd811fb91c76cc9354072d4cf91 (diff) |
xcb: rely on QRegion::operator| to handle empty regions
There is no need to check for it explicitly.
Change-Id: I66958bf1ff4539ee75fec635c96f056524da8ddb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 7ea60d7fde..7a15caaac6 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -1978,11 +1978,7 @@ void QXcbWindow::handleExposeEvent(const xcb_expose_event_t *event) { QRect rect(event->x, event->y, event->width, event->height); - if (m_exposeRegion.isEmpty()) - m_exposeRegion = rect; - else - m_exposeRegion |= rect; - + m_exposeRegion |= rect; bool pending = compressExposeEvent(m_exposeRegion); // if count is non-zero there are more expose events pending |