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

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kicker/libkicker
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2006-03-25 19:30:07
Message-ID: 1143315007.696945.14889.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 522492 by aseigo:

check to see if the active window is fullscreened and if so assume we
shouldn't be showing our kicker tips.

relaly wish it wasn't necessary, but i'm getting enough complaints about
it and i've had a nice relaxed morning of coffee, housecleaning, decent
weather and pretty women .. i'm in a good mood ;)

BUG:115943


 M  +13 -0     kickertip.cpp  


--- branches/KDE/3.5/kdebase/kicker/libkicker/kickertip.cpp #522491:522492
@@ -36,6 +36,9 @@
 #include "kickertip.h"
 #include "kickerSettings.h"
 
+// putting this #include higher results in compile errors
+#include <netwm.h>
+
 static const int DEFAULT_FRAMES_PER_SECOND = 30;
 
 KickerTip* KickerTip::m_self = 0;
@@ -91,6 +94,16 @@
         return;
     }
 
+    {
+        // prevent tips from showing when the active window is fullscreened
+        NETRootInfo ri(qt_xdisplay(), NET::ActiveWindow);
+        NETWinInfo wi(qt_xdisplay(), ri.activeWindow(), ri.rootWindow(), NET::WMState);
+        if (wi.state() & NET::FullScreen)
+        {
+            return;
+        }
+    }
+
     QWidget *widget = const_cast<QWidget*>(m_tippingFor);
     KickerTip::Client *client = dynamic_cast<KickerTip::Client*>(widget);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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