FLTK logo

[master] 8bcf65f - Fix issue under Wayland when erasing overlay rectangle (#1285)

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

[master] 8bcf65f - Fix issue under Wayland when erasing overlay rectangle (#1285) "ManoloFLTK" Aug 05, 2025  
 
commit 8bcf65fa660beeaf1c1f16bc113cb275026fcb65
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Aug 5 07:38:57 2025 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Aug 5 07:38:57 2025 +0200

    Fix issue under Wayland when erasing overlay rectangle (#1285)

 documentation/src/wayland.dox                    | 2 +-
 src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git documentation/src/wayland.dox documentation/src/wayland.dox
index a4bc5e4..b4c9d01 100644
--- documentation/src/wayland.dox
+++ documentation/src/wayland.dox
@@ -708,7 +708,7 @@ in function \c Fl_Wayland_Window_Driver::make_current() with
 \code
   // to support progressive drawing
   if ( (!Fl_Wayland_Window_Driver::in_flush_) && window->buffer && (!window->frame_cb)
-      && window->buffer->draw_buffer_needs_commit && (!wait_for_expose_value) ) {
+      && (!wait_for_expose_value) ) {
     Fl_Wayland_Graphics_Driver::buffer_commit(window);
   }
 \endcode
diff --git src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 6e3deea..a2f481f 100644
--- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -355,8 +355,8 @@ void Fl_Wayland_Window_Driver::make_current() {
   }
 
   // to support progressive drawing
-  if ( (!Fl_Wayland_Window_Driver::in_flush_) && window->buffer && (!window->frame_cb)
-      && window->buffer->draw_buffer_needs_commit && (!wait_for_expose_value) ) {
+  if ( (!Fl_Wayland_Window_Driver::in_flush_) && window->buffer && (!window->frame_cb) &&
+      (!wait_for_expose_value) ) {
     Fl_Wayland_Graphics_Driver::buffer_commit(window);
   }
 
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

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