From e8a5ea3532215d4f8119e465d9059d676a831557 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 27 Nov 2002 21:54:11 +0000 Subject: [PATCH] using FbTk App eventLoop --- util/fbrun/main.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/util/fbrun/main.cc b/util/fbrun/main.cc index 60d2762c..9c73aa5b 100644 --- a/util/fbrun/main.cc +++ b/util/fbrun/main.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: main.cc,v 1.6 2002/11/26 17:04:23 fluxgen Exp $ +// $Id: main.cc,v 1.7 2002/11/27 21:54:11 fluxgen Exp $ #include "FbRun.hh" #include "App.hh" @@ -156,13 +156,7 @@ int main(int argc, char **argv) { if (set_pos) fbrun.move(x, y); - XEvent ev; - - // main loop - while (!fbrun.end()) { - XNextEvent(disp, &ev); - fbrun.handleEvent(&ev); - } + application.eventLoop(); } catch (string errstr) { cerr<<"Error: "<