Changeset 2625 for neercs


Ignore:
Timestamp:
Aug 1, 2008, 3:55:37 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Filter out events that we don't use
  • Reduce caca_get_event timeout
Location:
neercs/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/main.c

    r2624 r2625  
    377377            break;
    378378
    379         ret = caca_get_event(screen_list->dp, CACA_EVENT_ANY, &ev, 100000);
     379        ret = caca_get_event(screen_list->dp,
     380                             CACA_EVENT_KEY_PRESS
     381                             |CACA_EVENT_RESIZE
     382                             |CACA_EVENT_QUIT,
     383                             &ev, 10000);
    380384        if(ret)
    381385            ret = send_event(ev, screen_list);
  • neercs/trunk/src/server.c

    r2624 r2625  
    6060    bytes = snprintf(buf, sizeof(buf)-1, "TITLE %s", title);
    6161    buf[bytes] = '\0';
    62 
    6362    return send_to_client(buf, screen_list);
    6463}
Note: See TracChangeset for help on using the changeset viewer.