From 1ea1abeb91f544b4cf595d229249ee859090bee5 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 15 Apr 2013 23:52:32 +0200 Subject: Implement startup notification spec again. This functionality was in Qt4's qapplication_x11.cpp and was missing from the XCB QPA plugin. Ported the code from xlib to xcb. This code was actually tested (with plasma), unlike the Qt-4.8 code which skipped every other character... for (uint i = 0; i < 20 && i + sent <= length; i++) xevent.xclient.data.b[i] = message[i + sent++]; Provide a QPA native-function for accessing the startup id, for cases where an application doesn't show a window, but starts another app instead, or asks a running app to show the window on its behalf. Change-Id: If392179efddd70a51c45a8fab4fb9d753913094a Reviewed-by: David Faure (KDE) --- src/plugins/platforms/xcb/qxcbscreen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/xcb/qxcbscreen.h') diff --git a/src/plugins/platforms/xcb/qxcbscreen.h b/src/plugins/platforms/xcb/qxcbscreen.h index c3b13fd1ea..0382be8a29 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.h +++ b/src/plugins/platforms/xcb/qxcbscreen.h @@ -87,6 +87,7 @@ public: xcb_window_t clientLeader() const { return m_clientLeader; } + void windowShown(QXcbWindow *window); QString windowManagerName() const { return m_windowManagerName; } bool syncRequestSupported() const { return m_syncRequestSupported; } @@ -105,6 +106,7 @@ private: static bool xResource(const QByteArray &identifier, const QByteArray &expectedIdentifier, int *value); + void sendStartupMessage(const QByteArray &message) const; xcb_screen_t *m_screen; xcb_randr_crtc_t m_crtc; -- cgit v1.2.3