Don't keep a separate flag for the Motif noborder flag.

svn path=/trunk/KDE/kdebase/workspace/; revision=788801
remotes/origin/Plasma/5.0
Luboš Luňák 18 years ago
parent 01d9d88580
commit a32b9ff1e7
  1. 6
      client.cpp
  2. 1
      client.h

@ -135,7 +135,6 @@ Client::Client( Workspace *ws )
deleting = false;
keep_above = false;
keep_below = false;
motif_noborder = false;
motif_may_move = true;
motif_may_resize = true;
motif_may_close = true;
@ -479,7 +478,7 @@ void Client::resizeDecoration( const QSize& s )
bool Client::noBorder() const
{
return noborder || isFullScreen() || user_noborder || motif_noborder;
return noborder || isFullScreen() || user_noborder;
}
bool Client::userCanSetNoBorder() const
@ -1446,7 +1445,8 @@ void Client::getMotifHints()
{
bool mnoborder, mresize, mmove, mminimize, mmaximize, mclose;
Motif::readFlags( client, mnoborder, mresize, mmove, mminimize, mmaximize, mclose );
motif_noborder = mnoborder;
if( mnoborder )
noborder = true;
if( !hasNETSupport()) // NETWM apps should set type and size constraints
{
motif_may_resize = mresize; // this should be set using minsize==maxsize, but oh well

@ -447,7 +447,6 @@ class Client
uint Pping : 1; // does it support _NET_WM_PING?
uint input :1; // does the window want input in its wm_hints
uint skip_pager : 1;
uint motif_noborder : 1;
uint motif_may_resize : 1;
uint motif_may_move :1;
uint motif_may_close : 1;

Loading…
Cancel
Save