summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-09-13 11:47:08 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-09-13 11:47:08 +0200
commitbb917628ffa8ffc6cafc79da80344c8c9c653969 (patch)
tree676dff3df5256ae9c20ebcbe430fe0d7ac13a746
parent6aa5b703072c8a8fbd212d5b40f23cfd131496b2 (diff)
Fix "Wayland crash on mapping windows at startup" (#1072)
-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 bc0c264f5..58cd74f5a 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -1908,7 +1908,7 @@ void Fl_Wayland_Window_Driver::resize(int X, int Y, int W, int H) {
wl_callback_destroy(fl_win->frame_cb);
fl_win->frame_cb = NULL;
}
- Fl_Wayland_Graphics_Driver::buffer_commit(parent_xid);
+ if (parent_xid->buffer) Fl_Wayland_Graphics_Driver::buffer_commit(parent_xid);
} else {
if (!(parent && parent->damage()) && !parent_xid->frame_cb) {
// use the frame callback mechanism and memorize current X,Y,W,H values