You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, September 27th 2004, 8:35pm

How to check whether current KDE session is locked?

Allright, i wrote this in my former Posting but anda_skoa didn't understand my question and locked the thread.

Quoted

I've got a small problem with kopete. Everytime I lock the kde session it sets me away (which is fine) but any false mouse movement (which can occur frequently with an optical mouse) sets me online again. I want my online status to be away if and only if the session is locked. I allready made some modifications in the source code but found no way to check wether the session is looked or not. Could somebody please help me?


So this is definately a devellopment question. I want to know how a kde based program like kopete is able to check wether the current kde session is locked or not.

So I'm asking for something like this:

if (ksessioninfo->currentsession()!=LOCKED) {/* allow changing status back online*/}

But I'm sure it's not that simple.

This post has been edited 7 times, last edit by "PM" (Sep 28th 2004, 10:46am)