------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=164691         
           Summary: Kopete never auto-aways if screen saver is active
           Product: kopete
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kopete-devel kde org
        ReportedBy: makosoft googlemail com


Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

There's a bug in the Kopete auto-away logic if it detects that a screensaver is 
active via DBus. From kopete/libkopete/kopeteidletimer.cpp:

QDBusInterface caller("org.freedesktop.ScreenSaver", "/ScreenSaver", 
"org.freedesktop.ScreenSaver");
QDBusReply<bool> reply = caller.call("GetActive");

bool activity = ( !reply.isValid() || !reply.value() ) ? isActivity() : true;

This means that, if a screensaver is running, the user is always detected as 
active. Presumably, the final "true" should be "false" - that is, if the 
screensaver is active, the user should always be detected as inactive (for 
example see bug 117513). A clearer way to write this would be:

bool activity = ( reply.isValid() && reply.value() ) : false ? isActivity();
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to