mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Work around reparenting issues in #40
I'm still really curious why this double reparent would be needed though. Everything works fine on any other i3 config I've tried, and even the exact same config in a VM works fine for me.
This commit is contained in:
@@ -179,13 +179,20 @@ Editor::Editor(const Configuration& config,
|
||||
// child window ourselves. This is a hack to work around the issue's
|
||||
// described in `Editor`'s docstring'.
|
||||
xcb_reparent_window(x11_connection.get(), wine_window, parent_window, 0, 0);
|
||||
xcb_map_window(x11_connection.get(), wine_window);
|
||||
xcb_flush(x11_connection.get());
|
||||
|
||||
ShowWindow(win32_handle.get(), SW_SHOWNORMAL);
|
||||
if (win32_child_handle) {
|
||||
ShowWindow(win32_child_handle->get(), SW_SHOWNORMAL);
|
||||
}
|
||||
|
||||
// HACK: I can't seem to figure why the initial reparent would fail on this
|
||||
// particular i3 config in a way that I'm unable to reproduce, but if
|
||||
// it doesn't work the first time, just keep trying!
|
||||
//
|
||||
// https://github.com/robot-vdh/yabridge/issues/40
|
||||
xcb_reparent_window(x11_connection.get(), wine_window, parent_window, 0, 0);
|
||||
xcb_flush(x11_connection.get());
|
||||
}
|
||||
|
||||
Editor::~Editor() {
|
||||
|
||||
Reference in New Issue
Block a user