clutter/stage: Remove 'accept-focus' property
Also unused, only valid on X11. Meant for applications. Lets drop it. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1175
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
fe27a6ea3b
commit
6f0e5b0b56
@ -381,21 +381,11 @@ update_wm_hints (MetaStageX11 *stage_x11)
|
||||
|
||||
wm_hints.flags = StateHint | InputHint;
|
||||
wm_hints.initial_state = NormalState;
|
||||
wm_hints.input = stage_x11->accept_focus ? True : False;
|
||||
wm_hints.input = True;
|
||||
|
||||
XSetWMHints (xdisplay, stage_x11->xwin, &wm_hints);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_stage_x11_set_accept_focus (ClutterStageWindow *stage_window,
|
||||
gboolean accept_focus)
|
||||
{
|
||||
MetaStageX11 *stage_x11 = META_STAGE_X11 (stage_window);
|
||||
|
||||
stage_x11->accept_focus = !!accept_focus;
|
||||
update_wm_hints (stage_x11);
|
||||
}
|
||||
|
||||
static void
|
||||
set_stage_x11_state (MetaStageX11 *stage_x11,
|
||||
MetaStageX11State unset_flags,
|
||||
@ -543,8 +533,6 @@ meta_stage_x11_init (MetaStageX11 *stage)
|
||||
|
||||
stage->wm_state = STAGE_X11_WITHDRAWN;
|
||||
|
||||
stage->accept_focus = TRUE;
|
||||
|
||||
stage->title = NULL;
|
||||
}
|
||||
|
||||
@ -554,7 +542,6 @@ clutter_stage_window_iface_init (ClutterStageWindowInterface *iface)
|
||||
clutter_stage_window_parent_iface = g_type_interface_peek_parent (iface);
|
||||
|
||||
iface->set_title = meta_stage_x11_set_title;
|
||||
iface->set_accept_focus = meta_stage_x11_set_accept_focus;
|
||||
iface->show = meta_stage_x11_show;
|
||||
iface->hide = meta_stage_x11_hide;
|
||||
iface->resize = meta_stage_x11_resize;
|
||||
|
@ -68,7 +68,6 @@ struct _MetaStageX11
|
||||
MetaStageX11State wm_state;
|
||||
|
||||
guint viewport_initialized : 1;
|
||||
guint accept_focus : 1;
|
||||
};
|
||||
|
||||
struct _MetaStageX11Class
|
||||
|
Reference in New Issue
Block a user