[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:30:09
Message-ID: 1238427009.123594.31045.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 946947 by hein:
* The auto-open-on-mouse-pointer-hitting-the-screen edge feature now checks
the position of the mouse pointer against the actual position and width of
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%.
CCMAIL:ruby.freeman@gmail.com
* Simplified calculations done during mouse polling.
M +6 -0 ChangeLog
M +2 -7 app/mainwindow.cpp
--- trunk/extragear/utils/yakuake/ChangeLog #946946:946947
@@ -27,6 +27,12 @@
* Added a feature to prevent a session from being closed (toggled via a user-
configured shortcut or the context menu) by way of Yakuake's own shortcuts
and actions, including D-Bus calls to get/set this state bit.
+* The auto-open-on-mouse-pointer-hitting-the-screen edge feature now checks
+ the position of the mouse pointer against the actual position and width of
+ 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 #946946:946947
@@ -834,13 +834,8 @@
{
QPoint pos = QCursor::pos();
- if (pos.y() == 0)
- {
- if (Settings::screen() == 0)
- toggleWindowState();
- else if (pos.x() >= getDesktopGeometry().x() && pos.x() <= \
(getDesktopGeometry().x() + getDesktopGeometry().width()))
- toggleWindowState();
- }
+ if (pos.y() == 0 && pos.x() >= x() && pos.x() <= (x() + width()))
+ toggleWindowState();
}
void MainWindow::setKeepOpen(bool keepOpen)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic