summaryrefslogtreecommitdiffstats
path: root/twin/events.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-01 21:44:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-01 21:57:20 +0900
commit5590077e66774b629235516744993014360c3d25 (patch)
tree56db96746ddb57385b7f8cba562968ebe69dc3ea /twin/events.cpp
parentb6f9aaf3c380569e7608e13863dfd2693f21ed04 (diff)
downloadtdebase-5590077e66774b629235516744993014360c3d25.tar.gz
tdebase-5590077e66774b629235516744993014360c3d25.zip
twin: makes sure to notify an application on resizing events so that the window contents can get updated. This is particularly important for Virtual Terminal based application. This resolves issue TDE/tde#57 and issue #384.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'twin/events.cpp')
-rw-r--r--twin/events.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/twin/events.cpp b/twin/events.cpp
index ff0cc8e7c..0c08d102e 100644
--- a/twin/events.cpp
+++ b/twin/events.cpp
@@ -786,7 +786,12 @@ void Client::configureRequestEvent( XConfigureRequestEvent* e )
if( e->window != window())
return; // ignore frame/wrapper
if ( isResize() || isMove())
+ {
+ // Send a synthetic configure notification to make sure the
+ // window contents get updated by the application
+ sendSyntheticConfigureNotify();
return; // we have better things to do right now
+ }
if( fullscreen_mode == FullScreenNormal ) // refuse resizing of fullscreen windows
{ // but allow resizing fullscreen hacks in order to let them cancel fullscreen mode