diff options
Diffstat (limited to 'src/drivers/X11')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Screen_Driver.cxx | 9 | ||||
| -rw-r--r-- | src/drivers/X11/Fl_X11_Screen_Driver.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx index 6a53f65f6..e98dc3413 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx @@ -187,7 +187,8 @@ void Fl_X11_Screen_Driver::screen_dpi(float &h, float &v, int n) } -void Fl_X11_Screen_Driver::beep(int type) { +void Fl_X11_Screen_Driver::beep(int type) +{ switch (type) { case FL_BEEP_DEFAULT : case FL_BEEP_ERROR : @@ -202,6 +203,12 @@ void Fl_X11_Screen_Driver::beep(int type) { } +void Fl_X11_Screen_Driver::flush() +{ + if (fl_display) + XFlush(fl_display); +} + // // End of "$Id$". diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.h b/src/drivers/X11/Fl_X11_Screen_Driver.h index 635e975dc..b699a9ac4 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.h +++ b/src/drivers/X11/Fl_X11_Screen_Driver.h @@ -52,6 +52,8 @@ public: virtual void screen_work_area(int &X, int &Y, int &W, int &H, int n); // --- audible output virtual void beep(int type); + // --- global events + virtual void flush() = 0; }; |
