From 6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 1 Dec 2023 21:44:51 +0900 Subject: 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 (cherry picked from commit 5590077e66774b629235516744993014360c3d25) --- twin/events.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1