diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-05-10 21:22:29 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-05-10 21:22:29 +0200 |
| commit | 95709ae0ad04046edba992723c74205d86284f3b (patch) | |
| tree | afe450e891769373b1e078cc860efa8141a605cf /src/drivers | |
| parent | f8a7e299b03365a5526f787f7e5504cd09ec83e0 (diff) | |
Wayland: remove crash when resizing hidden subwindow
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 d1cff937e..53bb2ecf2 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1823,7 +1823,7 @@ void Fl_Wayland_Window_Driver::resize(int X, int Y, int W, int H) { } int is_a_move = (X != x() || Y != y()); bool true_rescale = Fl_Window::is_a_rescale(); - float f = Fl::screen_scale(pWindow->screen_num()); + float f = fl_win ? Fl::screen_scale(pWindow->screen_num()) : 1; if (fl_win && fl_win->buffer) { int scale = wld_scale(); int stride = cairo_format_stride_for_width( |
