mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -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 (*focus) (MetaWindow *window);
|
||||
void (*raised) (MetaWindow *window);
|
||||
};
|
||||
|
||||
/* These differ from window->has_foo_func in that they consider
|
||||
|
@ -146,6 +146,7 @@ enum
|
||||
{
|
||||
WORKSPACE_CHANGED,
|
||||
FOCUS,
|
||||
RAISED,
|
||||
|
||||
LAST_SIGNAL
|
||||
};
|
||||
@ -266,6 +267,15 @@ meta_window_class_init (MetaWindowClass *klass)
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
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
|
||||
@ -4757,6 +4767,8 @@ meta_window_raise (MetaWindow *window)
|
||||
*/
|
||||
if (window != ancestor)
|
||||
meta_stack_raise (window->screen->stack, window);
|
||||
|
||||
g_signal_emit (window, window_signals[RAISED], 0);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user