From d9a7551774877555df3d6f34d8072026bd79e4ac Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Wed, 25 Apr 2001 16:15:54 +0000 Subject: [PATCH] window snapping for all windows, including dialogs (suggestion by Melchior Franz) svn path=/trunk/kdebase/kwin/; revision=93936 --- workspace.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 8931230bfb..0c900a841f 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2137,9 +2137,9 @@ void Workspace::setCurrentDesktop( int new_desktop ){ mapping done from front to back => less exposure events */ Events::raise((Events::Event) (Events::DesktopChange+new_desktop)); - + ObscuringWindows obs_wins; - + for ( ClientList::ConstIterator it = stacking_order.begin(); it != stacking_order.end(); ++it) { if ( (*it)->isVisible() && !(*it)->isOnDesktop( new_desktop ) ) { obs_wins.create( *it ); @@ -2832,7 +2832,11 @@ QPoint Workspace::adjustClientPosition( Client* c, QPoint pos ) for (l = clients.begin();l != clients.end();++l ) { if ((*l)->isOnDesktop(currentDesktop()) && (*l) != desktop_client && - !(*l)->isIconified() && (*l)->transientFor() == None && (*l) != c ) + !(*l)->isIconified() +#if 0 + && (*l)->transientFor() == None +#endif + && (*l) != c ) { lx = (*l)->x(); ly = (*l)->y();