[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/utils/kpager
From:       Pino Toscano <pino () kde ! org>
Date:       2017-01-06 22:49:55
Message-ID: E1cPdKd-0005XY-LI () code ! kde ! org
[Download RAW message or body]

SVN commit 1479332 by pino:

pager: set WA_X11DoNotAcceptFocus attribute

... instead of manually using a libX11 snippet: it works the same,
and removes one usage of libX11


 M  +1 -7      kpager.cpp  


--- trunk/extragear/utils/kpager/kpager.cpp #1479331:1479332
@@ -105,13 +105,7 @@
     KWindowSystem::setOnAllDesktops( winId(), true);
     KWindowSystem::setType( winId(), NET::Utility );
 
-    XWMHints *hints = XGetWMHints(QX11Info::display(), winId());
-    if( hints == NULL )
-        hints = XAllocWMHints();
-    hints->input = false;
-    hints->flags |= InputHint;
-    XSetWMHints(QX11Info::display(), winId(), hints);
-    XFree(reinterpret_cast<char *>(hints));
+    setAttribute(Qt::WA_X11DoNotAcceptFocus, true);
 
     timeout=new QTimer(this);
     timeout->setObjectName("timeoutToQuit");
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic