diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-09-13 11:47:08 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-09-13 11:47:08 +0200 |
| commit | bb917628ffa8ffc6cafc79da80344c8c9c653969 (patch) | |
| tree | 676dff3df5256ae9c20ebcbe430fe0d7ac13a746 /src/drivers | |
| parent | 6aa5b703072c8a8fbd212d5b40f23cfd131496b2 (diff) | |
Fix "Wayland crash on mapping windows at startup" (#1072)
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 2 |
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 |
