[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: kwin desktop switching speed - XGetInputFocus()
From: Matthias Ettrich <ettrich () trolltech ! com>
Date: 2001-11-16 11:05:06
[Download RAW message or body]
On Friday 16 November 2001 00:59, aleXXX wrote:
> Hi,
>
> the call to XGetInputFocus() in void Workspace::setCurrentDesktop()
>
> if( desktop_client )
> {
> Window w_tmp;
> int i_tmp;
> Display *d=qt_xdisplay();
> cerr<<"after 3a: "<<time.elapsed()<<endl;
> XGetInputFocus( d, &w_tmp, &i_tmp ); // <--- this one
> cerr<<"after 3b: "<<time.elapsed()<<endl;
> if( w_tmp == null_focus_window )
> requestFocus( desktop_client );
> }
>
>
> takes on my system almost 0.1 seconds if several windows are on the
> screens. I commented it out and didn't notice a different behaviour except
> that it was faster, setCurrentDesktop() is now down to approx. 0.02 sec.
>
> But still desktop switching could be faster. xosview shows for a noticable
> moment 100 % cpu. There must be something else I think except window
> painting.
> xosview even shows high cpu usage for a *very* short moment when switching
> between two empty (except kpager and xosview, not even kicker and kdesktop)
> screens.
>
> Any ideas ?
>
> Btw. ClientList mapList and unmapList in the above function seem to be
> completely unused...
>
> Bye
> Alex
These changes were done by lunakl, I don't really understand them myself.
Maybe he can comment on that?
Matthias
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic