diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/App.cc | 4 | ||||
-rw-r--r-- | src/FbTk/App.hh | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/App.cc b/src/FbTk/App.cc index 18c6e56..309bc41 100644 --- a/src/FbTk/App.cc +++ b/src/FbTk/App.cc | |||
@@ -55,6 +55,10 @@ App::~App() { | |||
55 | s_app = 0; | 55 | s_app = 0; |
56 | } | 56 | } |
57 | 57 | ||
58 | void App::sync(bool discard) { | ||
59 | XSync(display(), discard); | ||
60 | } | ||
61 | |||
58 | void App::eventLoop() { | 62 | void App::eventLoop() { |
59 | XEvent ev; | 63 | XEvent ev; |
60 | while (!m_done) { | 64 | while (!m_done) { |
diff --git a/src/FbTk/App.hh b/src/FbTk/App.hh index f5eb091..4bcffed 100644 --- a/src/FbTk/App.hh +++ b/src/FbTk/App.hh | |||
@@ -47,6 +47,7 @@ public: | |||
47 | virtual ~App(); | 47 | virtual ~App(); |
48 | /// display connection | 48 | /// display connection |
49 | Display *display() const { return m_display; } | 49 | Display *display() const { return m_display; } |
50 | void sync(bool discard); | ||
50 | /// starts event loop | 51 | /// starts event loop |
51 | virtual void eventLoop(); | 52 | virtual void eventLoop(); |
52 | /// forces an end to event loop | 53 | /// forces an end to event loop |