MetaWindow::raised signal.
This commit is contained in:
parent
db273ce50c
commit
d1fd844bc4
@ -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