Browse Source

* Handle closing cacaview by window manager

tags/v0.99.beta14
Pascal Terjan pterjan 17 years ago
parent
commit
ef9545d773
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/cacaview.c

+ 4
- 1
src/cacaview.c View File

@@ -133,7 +133,8 @@ int main(int argc, char **argv)
caca_event_t ev; caca_event_t ev;
unsigned int const event_mask = CACA_EVENT_KEY_PRESS unsigned int const event_mask = CACA_EVENT_KEY_PRESS
| CACA_EVENT_RESIZE | CACA_EVENT_RESIZE
| CACA_EVENT_MOUSE_PRESS;
| CACA_EVENT_MOUSE_PRESS
| CACA_EVENT_QUIT;
unsigned int new_status = 0, new_help = 0; unsigned int new_status = 0, new_help = 0;
int event; int event;


@@ -291,6 +292,8 @@ int main(int argc, char **argv)
update = 1; update = 1;
set_zoom(zoom); set_zoom(zoom);
} }
else if(ev.type & CACA_EVENT_QUIT)
quit = 1;


if(status || new_status) if(status || new_status)
status = new_status; status = new_status;


Loading…
Cancel
Save