performance
svn path=/trunk/kdebase/kwin/; revision=44279
This commit is contained in:
parent
c2b5722a6b
commit
0bb1975556
2 changed files with 7 additions and 10 deletions
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
extern Atom qt_wm_state;
|
extern Atom qt_wm_state;
|
||||||
extern Time kwin_time;
|
extern Time kwin_time;
|
||||||
extern void updateTime(); // defined in workspace.cpp
|
|
||||||
|
|
||||||
static bool resizeHorizontalDirectionFixed = FALSE;
|
static bool resizeHorizontalDirectionFixed = FALSE;
|
||||||
static bool resizeVerticalDirectionFixed = FALSE;
|
static bool resizeVerticalDirectionFixed = FALSE;
|
||||||
|
@ -925,11 +924,6 @@ void Client::mouseMoveEvent( QMouseEvent * e)
|
||||||
break;
|
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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
@ -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;
|
static QWidget* w = 0;
|
||||||
if ( !w )
|
if ( !w )
|
||||||
|
@ -1390,18 +1393,18 @@ void Workspace::setCurrentDesktop( int new_desktop ){
|
||||||
mapping done from front to back => less exposure events
|
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 ) ) {
|
if ( (*it)->isVisible() && !(*it)->isOnDesktop( new_desktop ) ) {
|
||||||
(*it)->hide();
|
(*it)->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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)->isOnDesktop( new_desktop ) && !(*it)->isIconified() ) {
|
if ( (*it)->isOnDesktop( new_desktop ) && !(*it)->isIconified() ) {
|
||||||
(*it)->show();
|
(*it)->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
current_desktop = new_desktop;
|
current_desktop = new_desktop;
|
||||||
|
|
||||||
XChangeProperty(qt_xdisplay(), qt_xrootwin(),
|
XChangeProperty(qt_xdisplay(), qt_xrootwin(),
|
||||||
|
|
Loading…
Reference in a new issue