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

List:       kde-commits
Subject:    extragear/utils/yakuake
From:       Eike Hein <hein () kde ! org>
Date:       2009-03-30 15:53:33
Message-ID: 1238428413.889147.6204.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 946955 by hein:

Make the screen edge window state trigger logic work in conjunction
with the "open window on screen housing mouse pointer" pref again,
a regression from the earlier change to make it window-location-aware.
CCMAIL:ruby.freeman@gmail.com


 M  +0 -1      ChangeLog  
 M  +5 -1      app/mainwindow.cpp  


--- trunk/extragear/utils/yakuake/ChangeLog #946954:946955
@@ -32,7 +32,6 @@
   the window rather than triggering on the entire screen edge. This way, the
   screen corners are freed up e.g. for KWin Desktop Effects triggers with the
   default Yakuake window width of 90%.
-* Simplified calculations done during mouse polling.
 
 
 Changes in 2.9.4:
--- trunk/extragear/utils/yakuake/app/mainwindow.cpp #946954:946955
@@ -833,8 +833,12 @@
 void MainWindow::pollMouse()
 {
     QPoint pos = QCursor::pos();
+    QRect workArea = getDesktopGeometry();
 
-    if (pos.y() == 0 && pos.x() >= x() && pos.x() <= (x() + width()))
+    int windowX = workArea.x() + workArea.width() * Settings::position() * (100 - \
Settings::width()) / 10000; +    int windowWidth = workArea.width() * \
Settings::width() / 100; +
+    if (pos.y() == 0 && pos.x() >= windowX && pos.x() <= (windowX + windowWidth))
         toggleWindowState();
 }
 


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

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