mirror of
https://github.com/brl/mutter.git
synced 2025-08-05 16:14:51 +00:00
window: add an appears-focused property, redraw shadows when it changes
We need to redraw a window's shadow any time the value of meta_window_appears_focused() changes. So make that into a property so we can get notifications on it. https://bugzilla.gnome.org/show_bug.cgi?id=636904
This commit is contained in:
@@ -253,11 +253,9 @@ struct _MetaWindow
|
||||
/* EWHH demands attention flag */
|
||||
guint wm_state_demands_attention : 1;
|
||||
|
||||
/* this flag tracks receipt of focus_in focus_out and
|
||||
* determines whether we draw the focus
|
||||
*/
|
||||
/* this flag tracks receipt of focus_in focus_out */
|
||||
guint has_focus : 1;
|
||||
|
||||
|
||||
/* Have we placed this window? */
|
||||
guint placed : 1;
|
||||
|
||||
@@ -389,6 +387,9 @@ struct _MetaWindow
|
||||
MetaGroup *group;
|
||||
|
||||
GObject *compositor_private;
|
||||
|
||||
/* Focused window that is (directly or indirectly) attached to this one */
|
||||
MetaWindow *attached_focus_window;
|
||||
};
|
||||
|
||||
struct _MetaWindowClass
|
||||
@@ -634,4 +635,7 @@ void meta_window_update_net_wm_type (MetaWindow *window);
|
||||
void meta_window_update_monitor (MetaWindow *window);
|
||||
void meta_window_update_on_all_workspaces (MetaWindow *window);
|
||||
|
||||
void meta_window_propagate_focus_appearance (MetaWindow *window,
|
||||
gboolean focused);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user