Obey motif hints only from apps that don't support the NETWM spec, as
those should set window type, and should not be stupid. Actually the reason for this change is OO setting the no-resize Motif hint, and requesting that the WM fullscreens the window, which, guess what, means resizing the window, but this makes sense in general. svn path=/trunk/kdebase/kwin/; revision=257177
This commit is contained in:
parent
02933b7c03
commit
b95ee3bbb1
1 changed files with 5 additions and 2 deletions
|
@ -99,8 +99,11 @@ bool Client::manage( Window w, bool isMapped )
|
|||
bool mresize, mmove, mminimize, mmaximize, mclose;
|
||||
if( Motif::funcFlags( client, mresize, mmove, mminimize, mmaximize, mclose ))
|
||||
{
|
||||
motif_may_resize = mresize; // this should be set using minsize==maxsize, but oh well
|
||||
motif_may_move = mmove;
|
||||
if( !hasNETSupport()) // NETWM apps should set type and size constraints
|
||||
{
|
||||
motif_may_resize = mresize; // this should be set using minsize==maxsize, but oh well
|
||||
motif_may_move = mmove;
|
||||
}
|
||||
// mminimize; - ignore, bogus - e.g. shading or sending to another desktop is "minimizing" too
|
||||
// mmaximize; - ignore, bogus - maximizing is basically just resizing
|
||||
motif_may_close = mclose; // motif apps like to crash when they set this hint and WM closes them anyway
|
||||
|
|
Loading…
Reference in a new issue