Fix #22189.
CCMAIL: 22189-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=185452
This commit is contained in:
parent
a6304cef72
commit
4304971dfd
1 changed files with 6 additions and 4 deletions
10
client.cpp
10
client.cpp
|
@ -1298,10 +1298,12 @@ bool Client::configureRequest( XConfigureRequestEvent& e )
|
|||
|
||||
//QRect area = workspace()->clientArea();
|
||||
if ( isMaximizable() && isMaximized() ) { //&& ( ns.width() < area.width() || ns.height() < area.height() ) ) {
|
||||
if ( (e.value_mask & (CWX | CWY )) == 0 )
|
||||
geom_restore.moveTopLeft( geometry().topLeft() );
|
||||
geom_restore.setSize( ns );
|
||||
maximize( Client::MaximizeRestore );
|
||||
if( ns != size()) { // don't restore if some app sets its own size again
|
||||
if ( (e.value_mask & (CWX | CWY )) == 0 )
|
||||
geom_restore.moveTopLeft( geometry().topLeft() );
|
||||
geom_restore.setSize( ns );
|
||||
maximize( Client::MaximizeRestore );
|
||||
}
|
||||
} else if ( !isMaximized() ) {
|
||||
if ( ns == size() )
|
||||
return TRUE; // broken xemacs stuff (ediff)
|
||||
|
|
Loading…
Reference in a new issue