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) "Pierre Ossman (Work account)" Nov 03, 2021  
 

After more digging we've found that the issue is the call to -[NSWindow setStyleMask:]. It does not result in an event propagating properly.

After more digging it turns out that the NSViewFrameDidChangeNotification event fires properly. The issue is that the system disassociates the view from the window for a while, so when the event handler is called then there it cannot find the associated window. I confirmed this by overloading -[NSView viewDidMoveToWindow].

The fix is either to have a way of finding the associated window without using -[NSView window], or making sure to sync up things when we get reassigned to a window. I think the latter is safer as I'm not sure how safe it is to manipulate the view when it isn't properly associated with it's window.


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