summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbwindow.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-06-07 10:33:23 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-06-07 15:50:53 +0200
commitff53b1dcec761861f76c7528aafd42c9ce843d56 (patch)
treed12a2cbcae5379767bdb5b56d146dd16e4265fdf /src/plugins/platforms/xcb/qxcbwindow.h
parentc3f9de62966d32d8e33d62eb374fe2657a4cfebe (diff)
add WM support class
Add a QXcbWMSupport class to better integrate with NET_WM compliant window managers. Suppport NET_WM_USER_TIME on windows. Reviewed-by: Samuel
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbwindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.h b/src/plugins/platforms/xcb/qxcbwindow.h
index 23b9d7ac2b..0412f4a75e 100644
--- a/src/plugins/platforms/xcb/qxcbwindow.h
+++ b/src/plugins/platforms/xcb/qxcbwindow.h
@@ -100,6 +100,8 @@ public:
void handleMouseEvent(xcb_button_t detail, uint16_t state, xcb_timestamp_t time, const QPoint &local, const QPoint &global);
void updateSyncRequestCounter();
+ void updateNetWmUserTime(xcb_timestamp_t timestamp);
+ void netWmUserTime() const;
private:
void changeNetWmState(bool set, xcb_atom_t one, xcb_atom_t two = 0);
@@ -113,6 +115,7 @@ private:
void updateMotifWmHintsBeforeMap();
void updateNetWmStateBeforeMap();
+
void create();
void destroy();
@@ -134,6 +137,7 @@ private:
Qt::WindowState m_windowState;
bool m_mapped;
+ xcb_window_t m_netWmUserTimeWindow;
};
#endif