FLTK logo

Re: [fltk/fltk] FLTK 1.3.6 doesn't handle fullscreen on macOS (Issue #287)

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

Re: [fltk/fltk] FLTK 1.3.6 doesn't handle fullscreen on macOS (Issue #287) William Sjoblom Nov 03, 2021  
 

Here is an even more minimal example that exhibit the same problems:

#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Widget.H>

void btn_cb(Fl_Widget *, void *v) {
    Fl_Window *w = (Fl_Window *)v;
    if (!w->fullscreen_active()) w->fullscreen();
    else                         w->fullscreen_off();
}

int main(int argc, char **argv) {
  Fl_Window *window = new Fl_Window(1920, 1200);
  Fl_Button *btn = new Fl_Button(0, 0, 128, 32, "fullscreen");
  btn->callback(btn_cb, window);
  window->end();
  window->resizable(window);
  window->fullscreen();
  window->show(argc, argv);
  return Fl::run();
}

Adjusting the initial window size to your primary monitor resolution and clicking the button twice using the FLTK/macOS version in my previous comment should reproduce the issue.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

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'.