[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/ktimetracker
From: Thorsten Staerk <dev () staerk ! de>
Date: 2010-01-15 20:12:33
Message-ID: 1263586353.675586.3938.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1075317 by tstaerk:
Track time of tasks by title of focus window.
I have no idea why the old code suddenly stopped working.
BUGS:220160
M +1 -8 ktimetrackerutility.cpp
--- trunk/KDE/kdepim/ktimetracker/ktimetrackerutility.cpp #1075316:1075317
@@ -31,14 +31,7 @@
QString getFocusWindow()
{
- Display *display = XOpenDisplay( 0 );
- char *name;
- Window window = 0;
- int i = 0;
- XGetInputFocus( display, &window, &i );
- XFetchName( display, window, &name );
- XCloseDisplay( display );
- return QString( name );
+ return KWindowSystem::windowInfo(KWindowSystem::activeWindow(),NET::WMName, 0).name();
}
QString formatTime( double minutes, bool decimal )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic