Ignore:
Timestamp:
May 13, 2011, 1:36:00 PM (12 years ago)
Author:
Sam Hocevar
Message:

imlib: clean up EventHandler? and JCMouse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/netcfg.cpp

    r644 r645  
    7070  {
    7171    wm->flush_screen();
    72     do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     72    do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    7373  } while (ev.type!=EV_MESSAGE || ev.message.id!=CFG_ERR_OK || ev.type==EV_CLOSE_WINDOW || (ev.type==EV_KEY && ev.key==JK_ESC));
    7474  wm->close_window(j);
     
    193193  {
    194194    wm->flush_screen();
    195     do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     195    do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    196196    if (ev.type==EV_MESSAGE)
    197197    {
     
    250250  {
    251251    wm->flush_screen();
    252     do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     252    do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    253253    if (ev.type==EV_MESSAGE && ev.message.id==NET_OK && confirm_inputs(nw,state==RESTART_SERVER))
    254254      done=1;
     
    308308    {
    309309      wm->flush_screen();
    310       do  { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     310      do  { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    311311      inm.handle_event(ev,NULL);
    312312      if ((ev.type==EV_KEY && (ev.key==JK_ESC || ev.key==JK_ENTER)) ||
     
    428428    {
    429429      wm->flush_screen();
    430       do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     430      do { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    431431      inm.handle_event(ev,NULL);
    432432      if (ev.type==EV_MESSAGE)
     
    491491    do
    492492    {
    493       if (wm->event_waiting())
     493      if (wm->IsPending())
    494494      {
    495         do  { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     495        do  { wm->get_event(ev); } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    496496        inm.handle_event(ev,NULL);
    497497        if (ev.type==EV_MESSAGE)
Note: See TracChangeset for help on using the changeset viewer.