window: Kill off a now-unnecessary state variable

This commit is contained in:
Jasper St. Pierre 2014-08-13 18:23:22 -04:00
parent e76be14dbb
commit 879407c10c
3 changed files with 2 additions and 10 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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
{