From 0bb1975556654e48272b94b3fc1730892e3343f4 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Wed, 22 Mar 2000 10:06:37 +0000 Subject: [PATCH] performance svn path=/trunk/kdebase/kwin/; revision=44279 --- client.cpp | 6 ------ workspace.cpp | 11 +++++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/client.cpp b/client.cpp index d44e6974c5..49c415831b 100644 --- a/client.cpp +++ b/client.cpp @@ -19,7 +19,6 @@ extern Atom qt_wm_state; extern Time kwin_time; -extern void updateTime(); // defined in workspace.cpp static bool resizeHorizontalDirectionFixed = FALSE; static bool resizeVerticalDirectionFixed = FALSE; @@ -925,11 +924,6 @@ void Client::mouseMoveEvent( QMouseEvent * e) break; } } - - // slow down the window manager in order to give the client time - // to process the configure event. Results in a better overal - // performance. - updateTime(); } /*! diff --git a/workspace.cpp b/workspace.cpp index 86f3eeaa0e..30147290fe 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -48,7 +48,10 @@ int Shape::shapeEvent() } -void updateTime() +/*! + Updates kwin_time by receiving a current timestamp from the server. + */ +static void updateTime() { static QWidget* w = 0; if ( !w ) @@ -1390,18 +1393,18 @@ void Workspace::setCurrentDesktop( int new_desktop ){ mapping done from front to back => less exposure events */ - for ( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it) { + for ( ClientList::ConstIterator it = stacking_order.begin(); it != stacking_order.end(); ++it) { if ( (*it)->isVisible() && !(*it)->isOnDesktop( new_desktop ) ) { (*it)->hide(); } } - - for ( ClientList::ConstIterator it = stacking_order.begin(); it != stacking_order.end(); ++it) { + for ( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it) { if ( (*it)->isOnDesktop( new_desktop ) && !(*it)->isIconified() ) { (*it)->show(); } } + current_desktop = new_desktop; XChangeProperty(qt_xdisplay(), qt_xrootwin(),