Fixes the automatic resizing of windows to a 10x10 rectangle

when pressing Alt and clicking inside the window (just a click)

svn path=/trunk/kdebase/kwin/; revision=68059
This commit is contained in:
Antonio Larrosa Jimenez 2000-10-16 22:01:16 +00:00
parent 26ee3808bd
commit d5ff78e16d

View file

@ -2251,6 +2251,7 @@ bool Client::performMouseCommand( Options::MouseCommand command, QPoint globalPo
break; break;
mode = Center; mode = Center;
moveResizeMode = TRUE; moveResizeMode = TRUE;
geom=geometry();
if ( isMaximized() ) { if ( isMaximized() ) {
// in case we were maximized, reset state // in case we were maximized, reset state
max_mode = MaximizeRestore; max_mode = MaximizeRestore;
@ -2271,6 +2272,7 @@ bool Client::performMouseCommand( Options::MouseCommand command, QPoint globalPo
if (!isMovable()) if (!isMovable())
break; break;
moveResizeMode = TRUE; moveResizeMode = TRUE;
geom=geometry();
if ( isMaximized() ) { if ( isMaximized() ) {
// in case we were maximized, reset state // in case we were maximized, reset state
max_mode = MaximizeRestore; max_mode = MaximizeRestore;