diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-24 14:52:08 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-24 14:52:08 +0200 |
| commit | 0bb559c803eaecf751114beca2179410f9f20041 (patch) | |
| tree | 26f79be2d49748ebdef8fa45da9460128c3ed9ab /src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | |
| parent | 8250cc7f7bbd0a1d34cc0ade8d6c4beee84ee4f2 (diff) | |
Wayland: account for old versions of the GTK shell protocol - cont'd
Not easy to get it right in absence of any documentation for "GTK Shell" protocol.
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 07076bb0a..5e343268d 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1528,6 +1528,8 @@ void Fl_Wayland_Window_Driver::makeWindow() gtk_surface1_set_modal(gtk_surface); if (gtk_surface1_get_version(gtk_surface) >= GTK_SURFACE1_RELEASE_SINCE_VERSION) gtk_surface1_release(gtk_surface); // very necessary + else + gtk_surface1_destroy(gtk_surface); } } |
