summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface_qpa.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-06-06 15:54:11 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-06-06 16:03:38 +0200
commit078e4ef6c72bdc759b83b5f430390cdcdf7f4e9e (patch)
treeed480e064dd35fe2f28e786ec066def5aaeb2c4e /src/gui/kernel/qwindowsysteminterface_qpa.h
parent481067453ff5b58552ef06c82d5a65019a648907 (diff)
Made tst_QWidget::updateWhileMinimized() pass.
This requires adding a couple of window system interface events, namely Map, Unmap, and Expose. When a widget is minimized on X11 it is unmapped, and thus update requests should not be delivered. Instead the event will delivered when the widget is mapped, which causes an Expose event to be sent. The Unmap and Expose event thus need to be handled in QWidgetWindow, and Map is also added for the purpose of API symmetry (and for future needs).
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_qpa.h')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa.h b/src/gui/kernel/qwindowsysteminterface_qpa.h
index 5ad4d7afb7..1188ca3439 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa.h
+++ b/src/gui/kernel/qwindowsysteminterface_qpa.h
@@ -96,6 +96,11 @@ public:
static void handleLeaveEvent(QWindow *w);
static void handleWindowActivated(QWindow *w);
+ static void handleMapEvent(QWindow *w);
+ static void handleUnmapEvent(QWindow *w);
+
+ static void handleExposeEvent(QWindow *w, const QRegion &region);
+
// Changes to the screen
static void handleScreenGeometryChange(int screenIndex);
static void handleScreenAvailableGeometryChange(int screenIndex);