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;
|
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 */
|
/* if TRUE, window was maximized at start of current grab op */
|
||||||
guint shaken_loose : 1;
|
guint shaken_loose : 1;
|
||||||
|
|
||||||
|
@ -933,7 +933,6 @@ _meta_window_shared_new (MetaDisplay *display,
|
|||||||
|
|
||||||
window->xtransient_for = None;
|
window->xtransient_for = None;
|
||||||
window->xclient_leader = None;
|
window->xclient_leader = None;
|
||||||
window->transient_parent_is_root_window = FALSE;
|
|
||||||
|
|
||||||
window->type = META_WINDOW_NORMAL;
|
window->type = META_WINDOW_NORMAL;
|
||||||
|
|
||||||
|
@ -1604,16 +1604,12 @@ reload_transient_for (MetaWindow *window,
|
|||||||
|
|
||||||
window->xtransient_for = transient_for;
|
window->xtransient_for = transient_for;
|
||||||
|
|
||||||
window->transient_parent_is_root_window =
|
|
||||||
window->xtransient_for == window->screen->xroot;
|
|
||||||
|
|
||||||
if (window->xtransient_for != None)
|
if (window->xtransient_for != None)
|
||||||
meta_verbose ("Window %s transient for 0x%lx (root = %d)\n", window->desc,
|
meta_verbose ("Window %s transient for 0x%lx\n", window->desc, window->xtransient_for);
|
||||||
window->xtransient_for, window->transient_parent_is_root_window);
|
|
||||||
else
|
else
|
||||||
meta_verbose ("Window %s is not transient\n", window->desc);
|
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);
|
meta_window_set_transient_for (window, NULL);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user