summaryrefslogtreecommitdiff
path: root/src/Fl_display.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_display.cxx')
-rw-r--r--src/Fl_display.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_display.cxx b/src/Fl_display.cxx
index 8afc2583e..7ce6d4293 100644
--- a/src/Fl_display.cxx
+++ b/src/Fl_display.cxx
@@ -32,6 +32,12 @@
#include <stdlib.h>
#include "flstring.h"
+/**
+ Sets the X display to use for all windows. Actually this just sets
+ the environment variable $DISPLAY to the passed string, so this only
+ works before you show() the first window or otherwise open the display,
+ and does nothing useful under WIN32.
+*/
void Fl::display(const char *d) {
#if defined(__APPLE__) || defined(WIN32)
(void)d;