window: Kill off a now-unnecessary state variable
This commit is contained in:
parent
e76be14dbb
commit
879407c10c
@ -329,9 +329,6 @@ struct _MetaWindow
|
||||
*/
|
||||
guint calc_placement : 1;
|
||||
|
||||
/* Transient parent is a root window */
|
||||
guint transient_parent_is_root_window : 1;
|
||||
|
||||
/* if TRUE, window was maximized at start of current grab op */
|
||||
guint shaken_loose : 1;
|
||||
|
||||
|
@ -933,7 +933,6 @@ _meta_window_shared_new (MetaDisplay *display,
|
||||
|
||||
window->xtransient_for = None;
|
||||
window->xclient_leader = None;
|
||||
window->transient_parent_is_root_window = FALSE;
|
||||
|
||||
window->type = META_WINDOW_NORMAL;
|
||||
|
||||
|
@ -1604,16 +1604,12 @@ reload_transient_for (MetaWindow *window,
|
||||
|
||||
window->xtransient_for = transient_for;
|
||||
|
||||
window->transient_parent_is_root_window =
|
||||
window->xtransient_for == window->screen->xroot;
|
||||
|
||||
if (window->xtransient_for != None)
|
||||
meta_verbose ("Window %s transient for 0x%lx (root = %d)\n", window->desc,
|
||||
window->xtransient_for, window->transient_parent_is_root_window);
|
||||
meta_verbose ("Window %s transient for 0x%lx\n", window->desc, window->xtransient_for);
|
||||
else
|
||||
meta_verbose ("Window %s is not transient\n", window->desc);
|
||||
|
||||
if (window->transient_parent_is_root_window || window->xtransient_for == None)
|
||||
if (window->xtransient_for == None || window->xtransient_for == window->screen->xroot)
|
||||
meta_window_set_transient_for (window, NULL);
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user