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

List:       kde-commits
Subject:    [kscreen/saveWhenNeeded] kded: Set the changeForMonitor to true in the next loop
From:       Àlex_Fiestas <afiestas () kde ! org>
Date:       2013-01-04 10:17:07
Message-ID: 20130104101707.E5A38A60C6 () git ! kde ! org
[Download RAW message or body]

Git commit d5e6d1967d53b6758c59e1df094e3b9c14ba000b by =C3=80lex Fiestas.
Committed on 04/01/2013 at 10:52.
Pushed by afiestas into branch 'saveWhenNeeded'.

Set the changeForMonitor to true in the next loop

When we set the config a bunch of Xorg events are going to be emitted
and Qt eventloop will pick'em in the current loop so we want to enable
the monitor again once those events have been pushed.

M  +1    -1    kded/daemon.cpp

http://commits.kde.org/kscreen/d5e6d1967d53b6758c59e1df094e3b9c14ba000b

diff --git a/kded/daemon.cpp b/kded/daemon.cpp
index f59dbb5..ea7f85a 100644
--- a/kded/daemon.cpp
+++ b/kded/daemon.cpp
@@ -86,7 +86,7 @@ void KScreenDaemon::applyKnownConfig()
 {
     setMonitorForChanges(false);
     KScreen::Config::setConfig(Serializer::config(Serializer::currentId())=
);
-    setMonitorForChanges(true);
+    QMetaObject::invokeMethod(this, "setMonitorForChanges", Qt::QueuedConn=
ection, Q_ARG(bool, true));
 }
 =

 void KScreenDaemon::applyIdealConfig()
[prev in list] [next in list] [prev in thread] [next in thread] 

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