summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-14 09:43:35 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-14 09:43:35 +0200
commitded5839d9c37d5f2af27f1bab0a2998a29893bdf (patch)
tree04f3e96f9ce64fff187394b447e4163fc07048ec
parent01038e832a305d0b2ad798f3d0dc25003d79e1ad (diff)
Improve Fl_Wayland_Window_Driver::take_focus()
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 757de2fb8..5644f8ca8 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -165,8 +165,8 @@ void Fl_Wayland_Window_Driver::take_focus()
Fl_Wayland_Window_Driver::driver(old_first->top_window());
xdg_toplevel_set_parent(xdg_toplevel(), top_dr->xdg_toplevel());
// this will remove the parent-child relationship
- old_first->wait_for_expose();
xdg_toplevel_set_parent(xdg_toplevel(), NULL);
+ wl_display_roundtrip(Fl_Wayland_Screen_Driver::wl_display);
}
// this sets the first window
fl_wl_find(w);