fixed maximization handling
svn path=/trunk/kdebase/kwin/; revision=113436icc-effect-5.14.5
parent
0f2643c994
commit
9388aeba3d
|
@ -518,7 +518,7 @@ Client::Client( Workspace *ws, WId w, QWidget *parent, const char *name, WFlags
|
|||
is_sticky = FALSE;
|
||||
stays_on_top = FALSE;
|
||||
may_move = TRUE;
|
||||
is_fullscreen = TRUE;
|
||||
is_fullscreen = FALSE;
|
||||
skip_taskbar = FALSE;
|
||||
skip_pager = FALSE;
|
||||
max_mode = MaximizeRestore;
|
||||
|
@ -1136,6 +1136,8 @@ 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 );
|
||||
} else if ( !isMaximized() ) {
|
||||
|
|
|
@ -23,7 +23,6 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|||
#include <kprocess.h>
|
||||
#include <kiconloader.h>
|
||||
#include <kstartupinfo.h>
|
||||
#include <qdesktopwidget.h>
|
||||
|
||||
#include "workspace.h"
|
||||
#include "client.h"
|
||||
|
|
Loading…
Reference in New Issue