summaryrefslogtreecommitdiffstats
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-02 14:46:15 +0900
commit6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec (patch)
tree50f83c16db41a6500f4c0548f1a02c72d3cc4001
parenta301718003b6fa2b45df61b601242ff3dbb35f61 (diff)
downloadtdebase-6b5d95d5.tar.gz
tdebase-6b5d95d5.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> (cherry picked from commit 5590077e66774b629235516744993014360c3d25)
-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