FLTK logo

[fltk.coredev] fullscreen_active() does not return valid when screen is fullscreen

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.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

fullscreen_active() does not return valid when screen is fullscreen Gonzalo Garramuno Sep 21, 2022  
 
As far as I can tell the logic on Fl_Window_fullscreen.cxx is wrong, as when the window goes fullscreen it does not set the flag for fullscreen_active().  Also, it does not clear it either. Find a patch attached.

-- 
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/E73A831A-62CB-4A7E-B01F-53C7B67EC52C%40gmail.com.
diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx
index ab9e6c6bb..ecaa2b086 100644
--- a/src/Fl_Window_fullscreen.cxx
+++ b/src/Fl_Window_fullscreen.cxx
@@ -42,7 +42,6 @@ void Fl_Window::fullscreen() {
   no_fullscreen_h = h();
   if (shown() && !(flags() & Fl_Widget::FULLSCREEN)) {
     pWindowDriver->fullscreen_on();
-  } else {
     set_flag(FULLSCREEN);
   }
 }
@@ -50,7 +49,6 @@ void Fl_Window::fullscreen() {
 void Fl_Window::fullscreen_off(int X,int Y,int W,int H) {
   if (shown() && (flags() & Fl_Widget::FULLSCREEN)) {
     pWindowDriver->fullscreen_off(X, Y, W, H);
-  } else {
     clear_flag(FULLSCREEN);
   }
   no_fullscreen_x = no_fullscreen_y = no_fullscreen_w = no_fullscreen_h = 0;
—
Gonzalo Garramuno
ggarra13@gmail.com




-- 
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/E73A831A-62CB-4A7E-B01F-53C7B67EC52C%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]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'.