diff options
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 6f048aee5..cb87b9ee9 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -689,6 +689,9 @@ void fl_open_display() { if (!d) Fl::fatal("Can't open display: %s",XDisplayName(0)); fl_open_display(d); + // the unique GC used by all X windows + GC gc = XCreateGC(fl_display, RootWindow(fl_display, fl_screen), 0, 0); + Fl_Display_Device::display_device()->driver()->gc(gc); } |
