From 20ffdc226363b403e3f39352f432b1a153924134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 14 Oct 2003 15:33:05 +0000 Subject: [PATCH] Send synthetic configure notify event when manually moving/resizing. svn path=/trunk/kdebase/kwin/; revision=258903 --- events.cpp | 1 + geometry.cpp | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/events.cpp b/events.cpp index 6a8a7ac4d3..93b29bea1f 100644 --- a/events.cpp +++ b/events.cpp @@ -727,6 +727,7 @@ void Client::configureRequestEvent( XConfigureRequestEvent* e ) // TODO sending a synthetic configure notify always is fine, even in cases where // the ICCCM doesn't require this - it can be though of as 'the WM decided to move // the window later'. Perhaps those unnecessary ones could be saved though. + // See also Client::setGeometry()/plainResize()/move(). sendSyntheticConfigureNotify(); // SELI TODO accept configure requests for isDesktop windows (because kdesktop diff --git a/geometry.cpp b/geometry.cpp index 0aa3c5ddd2..12e01fe36c 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1024,8 +1024,7 @@ void Client::setGeometry( int x, int y, int w, int h, ForceGeometry_t force ) updateShape(); // SELI TODO won't this be too expensive? updateWorkareaDiffs(); - if ( !isResize() ) - sendSyntheticConfigureNotify(); // TODO make this ICCCM compliant + sendSyntheticConfigureNotify(); // TODO optimize this? } } @@ -1062,13 +1061,8 @@ void Client::plainResize( int w, int h, ForceGeometry_t force ) if( shape()) updateShape(); updateWorkareaDiffs(); - if ( !isResize() ) - sendSyntheticConfigureNotify(); // TODO make this ICCCM compliant + sendSyntheticConfigureNotify(); } -// TODO to be done with synt. notify cleanup -// resize() is called from manage(), can't send synt. notify here -// if ( !isResize() && isVisible() ) -// sendSyntheticConfigureNotify(); } /*! @@ -1083,8 +1077,7 @@ void Client::move( int x, int y, ForceGeometry_t force ) if( block_geometry == 0 ) { XMoveWindow( qt_xdisplay(), frameId(), x, y ); - if ( !isResize() ) // TODO isMove() ? - sendSyntheticConfigureNotify(); // TODO make this ICCCM compliant + sendSyntheticConfigureNotify(); } }