summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-04-29 17:06:55 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-04-29 17:06:55 +0200
commit7a8343e7e482c6303242468f917f1d50d4e9ff38 (patch)
treefc6f4af0281a991fa4d5738fcf5da0878067a606
parent52a15632a6b8457fae2a9db61fe346c40bd46f15 (diff)
Fix crash reported in issues #723 and #724
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 77d9d5a0a..080f7f149 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -809,6 +809,7 @@ void Fl_Wayland_Window_Driver::wait_for_expose()
{
Fl_Window_Driver::wait_for_expose();
struct wld_window * xid = fl_wl_xid(pWindow);
+ if (!xid) return;
if (pWindow->fullscreen_active()) {
if (xid->kind == DECORATED) {
while (!(xid->state & LIBDECOR_WINDOW_STATE_FULLSCREEN) || !(xid->state & LIBDECOR_WINDOW_STATE_ACTIVE)) {