From 68d4a6610eac1b7a09eea8247281b1a7db9748f4 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 21 Jul 2021 12:33:29 +0200 Subject: [PATCH] Don't reparent when the parent gets reparented Some hosts, like Carla 2.3.1, will resize their windows to match the reparented window's client area. This messes with our ConfigureNotify setup. --- src/wine-host/editor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index f954d9fd..9b3ad5be 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -443,9 +443,8 @@ void Editor::handle_x11_events() noexcept { // recognized since the window will then cover the // entire screen (since that's what the client area // has been set to). - if (event->window == parent_window || - (event->window == wine_window && - event->parent != parent_window)) { + if (event->window == wine_window && + event->parent != parent_window) { if (use_xembed) { do_xembed(); } else {