Add support for WM_PROTOCOLS to the ClutterStage window

Supporting WM_PROTOCOLS allows handling the WM_DELETE_WINDOW ClientMessage,
which is then relayed to the ClutterStage actor in form of the "delete-event"
signal. Returning TRUE will block the propagation and won't close the
stage window.
This commit is contained in:
Emmanuele Bassi
2007-04-19 15:26:54 +00:00
parent f1a1399927
commit b2d01d86c2
6 changed files with 94 additions and 29 deletions

View File

@ -92,19 +92,6 @@ enum
static guint stage_signals[LAST_SIGNAL] = { 0 };
static gboolean
clutter_stage_delete_event (ClutterStage *stage,
ClutterAnyEvent *event)
{
/* FIXME - destroy the main stage, probably attaching a weak ref
* to it from the backend, so that it gets destroyed too.
*/
CLUTTER_NOTE (EVENT, "Received a destroy notification");
/* we don't want to block */
return FALSE;
}
static void
clutter_stage_paint (ClutterActor *actor)
{
@ -208,8 +195,6 @@ clutter_stage_class_init (ClutterStageClass *klass)
actor_class->paint = clutter_stage_paint;
stage_class->delete_event = clutter_stage_delete_event;
/**
* ClutterStage:fullscreen
*