Correctly initialize window->input field
With the change from bug 582639, we no longer call the reload functions for properties that are not initially set, so the initialization of fields in window.c has to match what window-props.c would set for a missing property. There was only one discrepancy, window->input, which needs to be set to TRUE by default (or a window missing a WM_HINTS property won't get focus); we also add explicit initializers for a couple of fields that were getting 0-initialized to the correct default value of FALSE for consistency with the explicit intialization of the rest of the fields. Bug reported by Dominique Leuenberger https://bugzilla.gnome.org/show_bug.cgi?id=601228
This commit is contained in:
parent
d59a9c2e8a
commit
fb45b8f45c
@ -732,6 +732,10 @@ meta_window_new_with_attrs (MetaDisplay *display,
|
||||
window->initial_timestamp_set = FALSE;
|
||||
window->net_wm_user_time_set = FALSE;
|
||||
window->user_time_window = None;
|
||||
window->take_focus = FALSE;
|
||||
window->delete_window = FALSE;
|
||||
window->net_wm_ping = FALSE;
|
||||
window->input = TRUE;
|
||||
window->calc_placement = FALSE;
|
||||
window->shaken_loose = FALSE;
|
||||
window->have_focus_click_grab = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user