diff options
author | Michele Calgaro <[email protected]> | 2023-12-01 21:44:51 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-02 14:46:15 +0900 |
commit | 6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec (patch) | |
tree | 50f83c16db41a6500f4c0548f1a02c72d3cc4001 | |
parent | a301718003b6fa2b45df61b601242ff3dbb35f61 (diff) | |
download | tdebase-6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec.tar.gz tdebase-6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec.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 <[email protected]>
(cherry picked from commit 5590077e66774b629235516744993014360c3d25)
-rw-r--r-- | twin/events.cpp | 5 |
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 |