diff options
author | fluxgen <fluxgen> | 2003-12-04 21:31:02 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-04 21:31:02 (GMT) |
commit | 29beda2d6be3eb6ccf849d7454a804fb966e7ccb (patch) | |
tree | c807397e72080c570094dc2a63707ae51a82935b /src/FbTk | |
parent | a8f39f0d7a97dc1a4438b7df3a667895fb23604d (diff) | |
download | fluxbox-29beda2d6be3eb6ccf849d7454a804fb966e7ccb.zip fluxbox-29beda2d6be3eb6ccf849d7454a804fb966e7ccb.tar.bz2 |
sync function
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 |