Ignore:
Timestamp:
Nov 18, 2007, 10:11:13 PM (13 years ago)
Author:
Pascal Terjan
Message:
  • Handle closing cacaview by window manager
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaview.c

    r1882 r2018  
    134134        unsigned int const event_mask = CACA_EVENT_KEY_PRESS
    135135                                      | CACA_EVENT_RESIZE
    136                                       | CACA_EVENT_MOUSE_PRESS;
     136                                      | CACA_EVENT_MOUSE_PRESS
     137                                      | CACA_EVENT_QUIT;
    137138        unsigned int new_status = 0, new_help = 0;
    138139        int event;
     
    292293                set_zoom(zoom);
    293294            }
     295            else if(ev.type & CACA_EVENT_QUIT)
     296                quit = 1;
    294297
    295298            if(status || new_status)
Note: See TracChangeset for help on using the changeset viewer.