FLTK logo

[master] 95f926f - Document that Fl::add_fd() opens display under macOS

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] 95f926f - Document that Fl::add_fd() opens display under macOS "ManoloFLTK" Jan 29, 2023  
 
commit 95f926fd0191c6d1db93028e1134799f46f5506e
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Jan 30 07:39:20 2023 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Mon Jan 30 07:39:20 2023 +0100

    Document that Fl::add_fd() opens display under macOS

 src/Fl.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git src/Fl.cxx src/Fl.cxx
index 7fc7a93..1bbe955 100644
--- src/Fl.cxx
+++ src/Fl.cxx
@@ -2081,9 +2081,11 @@ int Fl::clipboard_contains(const char *type)
  Fl::remove_fd() gets rid of <I>all</I> the callbacks for a given
  file descriptor.
 
- Under UNIX/Linux/MacOS <I>any</I> file descriptor can be monitored (files,
+ Under UNIX/Linux/macOS <I>any</I> file descriptor can be monitored (files,
  devices, pipes, sockets, etc.). Due to limitations in Microsoft Windows,
  Windows applications can only monitor sockets.
+ 
+ Under macOS, Fl::add_fd() opens the display if that's not been done before.
  */
 void Fl::add_fd(int fd, int when, Fl_FD_Handler cb, void *d)
 {
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'.