mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Allow to exit the process owning the foreground window by pressing ctrl-c. This is especially useful if there's no closebutton on the window frames (or no windows at all).
This commit is contained in:
parent
d7c1fffd51
commit
a0b8927777
@ -44,7 +44,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: ctk.c,v 1.25 2010/01/31 12:48:46 oliverschmidt Exp $
|
* $Id: ctk.c,v 1.26 2010/09/09 20:21:26 oliverschmidt Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -1718,6 +1718,14 @@ PROCESS_THREAD(ctk_process, ev, data)
|
|||||||
}
|
}
|
||||||
#endif /* CTK_CONF_WINDOWS */
|
#endif /* CTK_CONF_WINDOWS */
|
||||||
|
|
||||||
|
/* Allow to exit the process owning the foreground window by
|
||||||
|
pressing ctrl-c. This is especially useful if there's no
|
||||||
|
closebutton on the window frames (or no windows at all).
|
||||||
|
*/
|
||||||
|
if(c == 3) {
|
||||||
|
process_post(window->owner, PROCESS_EVENT_EXIT, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
widget = window->focused;
|
widget = window->focused;
|
||||||
|
|
||||||
if(widget != NULL &&
|
if(widget != NULL &&
|
||||||
|
Loading…
Reference in New Issue
Block a user