summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-27 21:54:11 (GMT)
committerfluxgen <fluxgen>2002-11-27 21:54:11 (GMT)
commite8a5ea3532215d4f8119e465d9059d676a831557 (patch)
treeb2fef07e735a1b24193aa96c54f7ec884decd4e1 /util
parent02352e9f8162940e70cbf49ecb97a6a4608fb322 (diff)
downloadfluxbox_lack-e8a5ea3532215d4f8119e465d9059d676a831557.zip
fluxbox_lack-e8a5ea3532215d4f8119e465d9059d676a831557.tar.bz2
using FbTk App eventLoop
Diffstat (limited to 'util')
-rw-r--r--util/fbrun/main.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/util/fbrun/main.cc b/util/fbrun/main.cc
index 60d2762..9c73aa5 100644
--- a/util/fbrun/main.cc
+++ b/util/fbrun/main.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: main.cc,v 1.6 2002/11/26 17:04:23 fluxgen Exp $ 22// $Id: main.cc,v 1.7 2002/11/27 21:54:11 fluxgen Exp $
23 23
24#include "FbRun.hh" 24#include "FbRun.hh"
25#include "App.hh" 25#include "App.hh"
@@ -156,13 +156,7 @@ int main(int argc, char **argv) {
156 if (set_pos) 156 if (set_pos)
157 fbrun.move(x, y); 157 fbrun.move(x, y);
158 158
159 XEvent ev; 159 application.eventLoop();
160
161 // main loop
162 while (!fbrun.end()) {
163 XNextEvent(disp, &ev);
164 fbrun.handleEvent(&ev);
165 }
166 160
167 } catch (string errstr) { 161 } catch (string errstr) {
168 cerr<<"Error: "<<errstr<<endl; 162 cerr<<"Error: "<<errstr<<endl;