diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-17 18:56:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 17:48:54 +0900 |
commit | a9bd5b50e9b77b8b360dd3620013a320733139aa (patch) | |
tree | 70d1d9c60c97a15f47e1b20f52d2715be1d0c4f1 /twin/geometry.cpp | |
parent | 82c1dbe490f7afcb5b48fdfb8748bde249bcf4f7 (diff) | |
download | tdebase-a9bd5b50e9b77b8b360dd3620013a320733139aa.tar.gz tdebase-a9bd5b50e9b77b8b360dd3620013a320733139aa.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>
Diffstat (limited to 'twin/geometry.cpp')
-rw-r--r-- | twin/geometry.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/twin/geometry.cpp b/twin/geometry.cpp index 8d08a502c..65285cab6 100644 --- a/twin/geometry.cpp +++ b/twin/geometry.cpp @@ -1451,6 +1451,8 @@ 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; + configureRequestTimer->start(100, true); if( gravity == 0 ) // default (nonsense) value for the argument gravity = xSizeHint.win_gravity; if( value_mask & ( CWX | CWY )) |