summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-15 15:58:40 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-15 15:58:48 +0100
commit576fbcde53d35464cbb498d7f089aef49967d222 (patch)
tree9ca00b2395b2555a463a257cfefef235789c43db /src
parent7f5ce4d7a9fc5497228ee6545f75f4724103163a (diff)
Fix for issue fltk#410 - continued.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
index d30356396..5c18d3774 100644
--- a/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.cxx
@@ -56,6 +56,7 @@ Fl_Wayland_Image_Surface_Driver::~Fl_Wayland_Image_Surface_Driver() {
void Fl_Wayland_Image_Surface_Driver::set_current() {
Fl_Surface_Device::set_current();
((Fl_Wayland_Graphics_Driver*)fl_graphics_driver)->activate(offscreen, driver()->scale());
+ fl_window = NULL;
}
void Fl_Wayland_Image_Surface_Driver::end_current() {