twin: use separate bit to inhibit configure request messages. This resolves issue #434.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/437/head
Michele Calgaro 5 months ago
parent 607f0804ce
commit f5bdd235fc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -99,6 +99,7 @@ Client::Client( Workspace *ws )
decoration( NULL ),
wspace( ws ),
bridge( new Bridge( this )),
inhibitConfigureRequests(false),
move_faked_activity( false ),
move_resize_grab_window( None ),
transient_for( NULL ),
@ -974,7 +975,7 @@ void Client::setShade( ShadeMode mode )
void Client::configureRequestTimeout()
{
moveResizeMode = false;
inhibitConfigureRequests = false;
sendSyntheticConfigureNotify();
}

@ -481,6 +481,7 @@ class Client : public TQObject, public KDecorationDefines
int desk;
bool buttonDown;
bool moveResizeMode;
bool inhibitConfigureRequests;
bool move_faked_activity;
Window move_resize_grab_window;
bool unrestrictedMoveResize;

@ -785,7 +785,7 @@ void Client::configureRequestEvent( XConfigureRequestEvent* e )
{
if( e->window != window())
return; // ignore frame/wrapper
if ( isResize() || isMove())
if ( isResize() || isMove() || inhibitConfigureRequests)
{
// Send a synthetic configure notification to make sure the
// window contents get updated by the application

@ -1451,7 +1451,7 @@ const TQPoint Client::calculateGravitation( bool invert, int gravity ) const
void Client::configureRequest( int value_mask, int rx, int ry, int rw, int rh, int gravity, bool from_tool )
{
moveResizeMode = true;
inhibitConfigureRequests = true;
configureRequestTimer->start(100, true);
if( gravity == 0 ) // default (nonsense) value for the argument
gravity = xSizeHint.win_gravity;

Loading…
Cancel
Save