mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
MetaWindow::raised signal.
This commit is contained in:
parent
e17377d407
commit
1e17ba1768
@ -370,6 +370,7 @@ struct _MetaWindowClass
|
|||||||
|
|
||||||
void (*workspace_changed) (MetaWindow *window, int old_workspace);
|
void (*workspace_changed) (MetaWindow *window, int old_workspace);
|
||||||
void (*focus) (MetaWindow *window);
|
void (*focus) (MetaWindow *window);
|
||||||
|
void (*raised) (MetaWindow *window);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* These differ from window->has_foo_func in that they consider
|
/* These differ from window->has_foo_func in that they consider
|
||||||
|
@ -146,6 +146,7 @@ enum
|
|||||||
{
|
{
|
||||||
WORKSPACE_CHANGED,
|
WORKSPACE_CHANGED,
|
||||||
FOCUS,
|
FOCUS,
|
||||||
|
RAISED,
|
||||||
|
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
@ -266,6 +267,15 @@ meta_window_class_init (MetaWindowClass *klass)
|
|||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
g_cclosure_marshal_VOID__VOID,
|
g_cclosure_marshal_VOID__VOID,
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
|
window_signals[RAISED] =
|
||||||
|
g_signal_new ("raised",
|
||||||
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
|
G_SIGNAL_RUN_LAST,
|
||||||
|
G_STRUCT_OFFSET (MetaWindowClass, raised),
|
||||||
|
NULL, NULL,
|
||||||
|
g_cclosure_marshal_VOID__VOID,
|
||||||
|
G_TYPE_NONE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -4757,6 +4767,8 @@ meta_window_raise (MetaWindow *window)
|
|||||||
*/
|
*/
|
||||||
if (window != ancestor)
|
if (window != ancestor)
|
||||||
meta_stack_raise (window->screen->stack, window);
|
meta_stack_raise (window->screen->stack, window);
|
||||||
|
|
||||||
|
g_signal_emit (window, window_signals[RAISED], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user