summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-06-23 10:03:30 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-06-23 10:03:30 +0200
commit38381ef544da565bac09e562ebd28a9d0091c6da (patch)
tree28e538b462aa482532f6955a6762eb9d0632b92c /src
parenteca471eee68850c138abc610d94ac9b148f5ddaf (diff)
Slightly simpler Fl_Wayland_Window_Driver::hide()
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 97b8f5252..1e0af4126 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -418,10 +418,6 @@ void Fl_Wayland_Window_Driver::show() {
static void popup_done(void *data, struct xdg_popup *xdg_popup);
-static void delayed_delete_Fl_X(Fl_X *i) {
- delete i;
-}
-
static void destroy_surface_caution_pointer_focus(struct wl_surface *surface,
struct Fl_Wayland_Screen_Driver::seat *seat) {
@@ -481,13 +477,7 @@ void Fl_Wayland_Window_Driver::hide() {
//fprintf(stderr, "After hide: sub=%p frame=%p xdg=%p top=%p pop=%p surf=%p\n", wld_win->subsurface, wld_win->frame, wld_win->xdg_surface, wld_win->xdg_toplevel, wld_win->xdg_popup, wld_win->wl_surface);
free(wld_win);
}
- if (pWindow->as_gl_window() && in_flush_) {
- ip->xid = 0;
- ip->next = NULL; // to end the loop in calling Fl::flush()
- Fl::add_timeout(.01, (Fl_Timeout_Handler)delayed_delete_Fl_X, ip);
- } else {
- delete ip;
- }
+ delete ip;
}