mirror of
https://github.com/brl/mutter.git
synced 2025-07-06 19:09:51 +00:00
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:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user