mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
window: Add an accessor for whether the window can close
The shell will use this to determine whether to show a close button in the overview. https://bugzilla.gnome.org/show_bug.cgi?id=699269
This commit is contained in:
parent
f5e75de330
commit
50b9042ac2
@ -11218,3 +11218,9 @@ meta_window_compute_tile_match (MetaWindow *window)
|
||||
window->tile_match = match;
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_window_can_close (MetaWindow *window)
|
||||
{
|
||||
return window->has_close_func;
|
||||
}
|
||||
|
@ -237,4 +237,6 @@ void meta_window_begin_grab_op (MetaWindow *window,
|
||||
gboolean frame_action,
|
||||
guint32 timestamp);
|
||||
|
||||
gboolean meta_window_can_close (MetaWindow *window);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user