summaryrefslogtreecommitdiffstats
path: root/twin/events.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-17 18:56:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-26 17:49:51 +0900
commitdf3439920c8464295b6f15128e2b62bc1eed8f43 (patch)
tree43813caab4b29fbed41df376f46b00c263cd3c90 /twin/events.cpp
parent71b2eaec0969200f80450667fb08b7602f669b2e (diff)
downloadtdebase-df3439920c8464295b6f15128e2b62bc1eed8f43.tar.gz
tdebase-df3439920c8464295b6f15128e2b62bc1eed8f43.zip
Fix unwanted window resizing. This resolves issue TDE/tde#57.
Some applications (like xfce4-terminal) try to manage their sizes by requesting the window manager a different size. The WM responds by resizing the window and the application tries once again to adjust its own size. This can lead to a repeated loop of request-resize which results in the application window to either shrink to the minimum allowed size or expand to the display size. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a9bd5b50e9b77b8b360dd3620013a320733139aa)
Diffstat (limited to 'twin/events.cpp')
-rw-r--r--twin/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twin/events.cpp b/twin/events.cpp
index 8660f8776..ff0cc8e7c 100644
--- a/twin/events.cpp
+++ b/twin/events.cpp
@@ -818,7 +818,7 @@ void Client::configureRequestEvent( XConfigureRequestEvent* e )
restackWindow( e->above, e->detail, NET::FromApplication, userTime(), false );
// 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 ICCCM doesn't require this - it can be thought of as 'the WM decided to move
// the window later'. The client should not cause that many configure request,
// so this should not have any significant impact. With user moving/resizing
// the it should be optimized though (see also Client::setGeometry()/plainResize()/move()).