From kde-core-devel Fri Nov 16 11:05:06 2001 From: Matthias Ettrich Date: Fri, 16 Nov 2001 11:05:06 +0000 To: kde-core-devel Subject: Re: kwin desktop switching speed - XGetInputFocus() X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100590864614485 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: "< XGetInputFocus( d, &w_tmp, &i_tmp ); // <--- this one > cerr<<"after 3b: "< 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