diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-30 07:39:20 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-30 07:39:20 +0100 |
| commit | 95f926fd0191c6d1db93028e1134799f46f5506e (patch) | |
| tree | 7ef22481ddf9439748ba1e5ec9e644281b032ca0 /src/Fl.cxx | |
| parent | c798581e4e25188d400c9a58653cf9c876efa9c6 (diff) | |
Document that Fl::add_fd() opens display under macOS
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 7fc7a93e5..1bbe95515 100644 --- a/src/Fl.cxx +++ b/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) { |
