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

List:       kde-commits
Subject:    KDE/kdebase/kioslave/media/medianotifier
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2006-01-20 13:33:53
Message-ID: 1137764033.086862.11633.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 500506 by lunakl:

Update user activity timestamp, otherwise the notification dialog will be shown
in the background due to focus stealing prevention. Entering a new media can
be seen as a kind of user activity after all. It'd be better to update the timestamp
as soon as the media is entered, but it apparently takes some time to get here.



 M  +7 -0      medianotifier.cpp  


--- trunk/KDE/kdebase/kioslave/media/medianotifier/medianotifier.cpp #500505:500506
@@ -25,6 +25,7 @@
 #include <QByteArray>
 #include <QLinkedList>
 
+#include <kapplication.h>
 #include <kdebug.h>
 #include <klocale.h>
 #include <kprocess.h>
@@ -56,6 +57,12 @@
 	kdDebug() << "MediaNotifier::onMediumChange( " << name << ", "
 	          << allowNotification << ")" << endl;
 	
+// Update user activity timestamp, otherwise the notification dialog will be shown
+// in the background due to focus stealing prevention. Entering a new media can
+// be seen as a kind of user activity after all. It'd be better to update the timestamp
+// as soon as the media is entered, but it apparently takes some time to get here.
+	kapp->updateUserTimestamp();
+
 	KURL url(  "system:/media/"+name );
 
 	KIO::SimpleJob *job = KIO::stat( url, false );
[prev in list] [next in list] [prev in thread] [next in thread] 

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