[Pkg-owncloud-commits] [owncloud-client] 22/38: X11: Bring Settings window to front when launched

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Sep 5 20:20:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch sid
in repository owncloud-client.

commit e5b4438d5ca8c597ee329e187ef2bbd36033dd9d
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Thu Aug 28 17:23:44 2014 +0200

    X11: Bring Settings window to front when launched
    
    (cherry picked from commit 25c274a0bddd37dd62a9391a9a9f0972a57b70c3)
    
    Conflicts:
    	src/mirall/owncloudgui.cpp
---
 src/mirall/owncloudgui.cpp | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/mirall/owncloudgui.cpp b/src/mirall/owncloudgui.cpp
index 61c1d5d..3e7c684 100644
--- a/src/mirall/owncloudgui.cpp
+++ b/src/mirall/owncloudgui.cpp
@@ -34,6 +34,10 @@
 #include <QMessageBox>
 #include <QSignalMapper>
 
+#if defined(Q_OS_X11)
+#include <QX11Info>
+#endif
+
 namespace Mirall {
 
 ownCloudGui::ownCloudGui(Application *parent) :
@@ -540,6 +544,22 @@ void ownCloudGui::raiseDialog( QWidget *raiseWidget )
     // viel hilft viel ;-)
     MacWindow::bringToFront(raiseWidget);
 #endif
+#if defined(Q_OS_X11)
+    WId wid = widget->winId();
+    NETWM::init();
+
+    XEvent e;
+    e.xclient.type = ClientMessage;
+    e.xclient.message_type = NETWM::NET_ACTIVE_WINDOW;
+    e.xclient.display = QX11Info::display();
+    e.xclient.window = wid;
+    e.xclient.format = 32;
+    e.xclient.data.l[0] = 2;
+    e.xclient.data.l[1] = QX11Info::appTime();
+    e.xclient.data.l[2] = 0;
+    e.xclient.data.l[3] = 0l;
+    e.xclient.data.l[4] = 0l;
+#endif
 }
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list