FLTK logo

[master] dea8a93 - Wayland: use frame_cb before redrawing GL subwins - cont'd (#967)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] dea8a93 - Wayland: use frame_cb before redrawing GL subwins - cont'd (#967) "ManoloFLTK" 02:17 May 05  
 
commit dea8a93bc2dc359bbcfd33889592660ee0089075
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun May 5 11:06:15 2024 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun May 5 11:06:15 2024 +0200

    Wayland: use frame_cb before redrawing GL subwins - cont'd (#967)

 src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index e1b5b0b..fd7766c 100644
--- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -495,6 +495,7 @@ void Fl_Wayland_Window_Driver::hide() {
     if (Fl_Wayland_Window_Driver::wld_window == wld_win) {
       Fl_Wayland_Window_Driver::wld_window = NULL;
     }
+    if (wld_win->frame_cb) wl_callback_destroy(wld_win->frame_cb); // useful for GL subwins
     free(wld_win);
   }
   delete ip;
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.