Remove trailing whitespace
This commit is contained in:
192
src/core/stack.c
192
src/core/stack.c
@@ -5,12 +5,12 @@
|
||||
* @short_description: Which windows cover which other windows
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
* Copyright (C) 2001 Havoc Pennington
|
||||
* Copyright (C) 2002, 2003 Red Hat, Inc.
|
||||
* Copyright (C) 2004 Rob Adams
|
||||
* Copyright (C) 2004, 2005 Elijah Newren
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
@@ -20,7 +20,7 @@
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
@@ -67,7 +67,7 @@ MetaStack*
|
||||
meta_stack_new (MetaScreen *screen)
|
||||
{
|
||||
MetaStack *stack;
|
||||
|
||||
|
||||
stack = g_new (MetaStack, 1);
|
||||
|
||||
stack->screen = screen;
|
||||
@@ -85,7 +85,7 @@ meta_stack_new (MetaScreen *screen)
|
||||
stack->need_resort = FALSE;
|
||||
stack->need_relayer = FALSE;
|
||||
stack->need_constrain = FALSE;
|
||||
|
||||
|
||||
return stack;
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ meta_stack_free (MetaStack *stack)
|
||||
|
||||
if (stack->last_all_root_children_stacked)
|
||||
free_last_all_root_children_stacked_cache (stack);
|
||||
|
||||
|
||||
g_free (stack);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ meta_stack_add (MetaStack *stack,
|
||||
|
||||
if (window->stack_position >= 0)
|
||||
meta_bug ("Window %s had stack position already\n", window->desc);
|
||||
|
||||
|
||||
stack->added = g_list_prepend (stack->added, window);
|
||||
|
||||
window->stack_position = stack->n_positions;
|
||||
@@ -127,7 +127,7 @@ meta_stack_add (MetaStack *stack,
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
"Window %s has stack_position initialized to %d\n",
|
||||
window->desc, window->stack_position);
|
||||
|
||||
|
||||
stack_sync_to_xserver (stack);
|
||||
meta_stack_update_window_tile_matches (stack, window->screen->active_workspace);
|
||||
}
|
||||
@@ -148,7 +148,7 @@ meta_stack_remove (MetaStack *stack,
|
||||
meta_window_set_stack_position_no_sync (window,
|
||||
stack->n_positions - 1);
|
||||
window->stack_position = -1;
|
||||
stack->n_positions -= 1;
|
||||
stack->n_positions -= 1;
|
||||
|
||||
/* We don't know if it's been moved from "added" to "stack" yet */
|
||||
stack->added = g_list_remove (stack->added, window);
|
||||
@@ -163,7 +163,7 @@ meta_stack_remove (MetaStack *stack,
|
||||
if (window->frame)
|
||||
stack->removed = g_list_prepend (stack->removed,
|
||||
GUINT_TO_POINTER (window->frame->xwindow));
|
||||
|
||||
|
||||
stack_sync_to_xserver (stack);
|
||||
meta_stack_update_window_tile_matches (stack, window->screen->active_workspace);
|
||||
}
|
||||
@@ -173,7 +173,7 @@ meta_stack_update_layer (MetaStack *stack,
|
||||
MetaWindow *window)
|
||||
{
|
||||
stack->need_relayer = TRUE;
|
||||
|
||||
|
||||
stack_sync_to_xserver (stack);
|
||||
meta_stack_update_window_tile_matches (stack, window->screen->active_workspace);
|
||||
}
|
||||
@@ -183,7 +183,7 @@ meta_stack_update_transient (MetaStack *stack,
|
||||
MetaWindow *window)
|
||||
{
|
||||
stack->need_constrain = TRUE;
|
||||
|
||||
|
||||
stack_sync_to_xserver (stack);
|
||||
meta_stack_update_window_tile_matches (stack, window->screen->active_workspace);
|
||||
}
|
||||
@@ -240,7 +240,7 @@ meta_stack_lower (MetaStack *stack,
|
||||
return;
|
||||
|
||||
meta_window_set_stack_position_no_sync (window, min_stack_position);
|
||||
|
||||
|
||||
stack_sync_to_xserver (stack);
|
||||
meta_stack_update_window_tile_matches (stack, window->screen->active_workspace);
|
||||
}
|
||||
@@ -255,7 +255,7 @@ void
|
||||
meta_stack_thaw (MetaStack *stack)
|
||||
{
|
||||
g_return_if_fail (stack->freeze_count > 0);
|
||||
|
||||
|
||||
stack->freeze_count -= 1;
|
||||
stack_sync_to_xserver (stack);
|
||||
meta_stack_update_window_tile_matches (stack, NULL);
|
||||
@@ -333,7 +333,7 @@ get_standalone_layer (MetaWindow *window)
|
||||
case META_WINDOW_OVERRIDE_OTHER:
|
||||
layer = META_LAYER_OVERRIDE_REDIRECT;
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
meta_window_foreach_transient (window,
|
||||
is_focused_foreach,
|
||||
&focused_transient);
|
||||
@@ -369,16 +369,16 @@ get_maximum_layer_in_group (MetaWindow *window)
|
||||
GSList *tmp;
|
||||
MetaStackLayer max;
|
||||
MetaStackLayer layer;
|
||||
|
||||
|
||||
max = META_LAYER_DESKTOP;
|
||||
|
||||
|
||||
group = meta_window_get_group (window);
|
||||
|
||||
if (group != NULL)
|
||||
members = meta_group_list_windows (group);
|
||||
else
|
||||
members = NULL;
|
||||
|
||||
|
||||
tmp = members;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
@@ -390,12 +390,12 @@ get_maximum_layer_in_group (MetaWindow *window)
|
||||
if (layer > max)
|
||||
max = layer;
|
||||
}
|
||||
|
||||
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
g_slist_free (members);
|
||||
|
||||
|
||||
return max;
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ compute_layer (MetaWindow *window)
|
||||
MetaStackLayer old_layer = window->layer;
|
||||
|
||||
window->layer = get_standalone_layer (window);
|
||||
|
||||
|
||||
/* We can only do promotion-due-to-group for dialogs and other
|
||||
* transients, or weird stuff happens like the desktop window and
|
||||
* nautilus windows getting in the same layer, or all gnome-terminal
|
||||
@@ -422,11 +422,11 @@ compute_layer (MetaWindow *window)
|
||||
* and a dialog transient for the normal window; you don't want the dialog
|
||||
* above the dock if it wouldn't normally be.
|
||||
*/
|
||||
|
||||
|
||||
MetaStackLayer group_max;
|
||||
|
||||
|
||||
group_max = get_maximum_layer_in_group (window);
|
||||
|
||||
|
||||
if (group_max > window->layer)
|
||||
{
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
@@ -467,10 +467,10 @@ compare_window_position (void *a,
|
||||
else
|
||||
return 0; /* not reached */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Stacking constraints
|
||||
*
|
||||
*
|
||||
* Assume constraints of the form "AB" meaning "window A must be
|
||||
* below window B"
|
||||
*
|
||||
@@ -487,14 +487,14 @@ compare_window_position (void *a,
|
||||
* apply BC: ABC
|
||||
*
|
||||
* but apply constraints in the wrong order and it breaks:
|
||||
*
|
||||
*
|
||||
* start: BCA
|
||||
* apply BC: BCA
|
||||
* apply AB: CAB
|
||||
*
|
||||
* We make a directed graph of the constraints by linking
|
||||
* from "above windows" to "below windows as follows:
|
||||
*
|
||||
*
|
||||
* AB -> BC -> CD
|
||||
* \
|
||||
* CE
|
||||
@@ -519,7 +519,7 @@ struct Constraint
|
||||
|
||||
/* used to create the graph. */
|
||||
GSList *next_nodes;
|
||||
|
||||
|
||||
/* constraint has been applied, used
|
||||
* to detect cycles.
|
||||
*/
|
||||
@@ -547,7 +547,7 @@ add_constraint (Constraint **constraints,
|
||||
Constraint *c;
|
||||
|
||||
g_assert (above->screen == below->screen);
|
||||
|
||||
|
||||
/* check if constraint is a duplicate */
|
||||
c = constraints[below->stack_position];
|
||||
while (c != NULL)
|
||||
@@ -574,7 +574,7 @@ create_constraints (Constraint **constraints,
|
||||
GList *windows)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
|
||||
tmp = windows;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
@@ -587,7 +587,7 @@ create_constraints (Constraint **constraints,
|
||||
tmp = tmp->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (WINDOW_TRANSIENT_FOR_WHOLE_GROUP (w))
|
||||
{
|
||||
GSList *group_windows;
|
||||
@@ -600,9 +600,9 @@ create_constraints (Constraint **constraints,
|
||||
group_windows = meta_group_list_windows (group);
|
||||
else
|
||||
group_windows = NULL;
|
||||
|
||||
|
||||
tmp2 = group_windows;
|
||||
|
||||
|
||||
while (tmp2 != NULL)
|
||||
{
|
||||
MetaWindow *group_window = tmp2->data;
|
||||
@@ -614,7 +614,7 @@ create_constraints (Constraint **constraints,
|
||||
tmp2 = tmp2->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
/* old way of doing it */
|
||||
if (!(meta_window_is_ancestor_of_transient (w, group_window)) &&
|
||||
@@ -630,7 +630,7 @@ create_constraints (Constraint **constraints,
|
||||
w->desc, group_window->desc);
|
||||
add_constraint (constraints, w, group_window);
|
||||
}
|
||||
|
||||
|
||||
tmp2 = tmp2->next;
|
||||
}
|
||||
|
||||
@@ -640,7 +640,7 @@ create_constraints (Constraint **constraints,
|
||||
!w->transient_parent_is_root_window)
|
||||
{
|
||||
MetaWindow *parent;
|
||||
|
||||
|
||||
parent =
|
||||
meta_display_lookup_x_window (w->display, w->xtransient_for);
|
||||
|
||||
@@ -652,7 +652,7 @@ create_constraints (Constraint **constraints,
|
||||
add_constraint (constraints, w, parent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
tmp = tmp->next;
|
||||
}
|
||||
}
|
||||
@@ -671,12 +671,12 @@ graph_constraints (Constraint **constraints,
|
||||
/* If we have "A below B" and "B below C" then AB -> BC so we
|
||||
* add BC to next_nodes in AB.
|
||||
*/
|
||||
|
||||
|
||||
c = constraints[i];
|
||||
while (c != NULL)
|
||||
{
|
||||
Constraint *n;
|
||||
|
||||
|
||||
g_assert (c->below->stack_position == i);
|
||||
|
||||
/* Constraints where ->above is below are our
|
||||
@@ -689,10 +689,10 @@ graph_constraints (Constraint **constraints,
|
||||
n);
|
||||
/* c is a previous node of n */
|
||||
n->has_prev = TRUE;
|
||||
|
||||
|
||||
n = n->next;
|
||||
}
|
||||
|
||||
|
||||
c = c->next;
|
||||
}
|
||||
|
||||
@@ -710,16 +710,16 @@ free_constraints (Constraint **constraints,
|
||||
while (i < n_constraints)
|
||||
{
|
||||
Constraint *c;
|
||||
|
||||
|
||||
c = constraints[i];
|
||||
while (c != NULL)
|
||||
{
|
||||
Constraint *next = c->next;
|
||||
|
||||
|
||||
g_slist_free (c->next_nodes);
|
||||
|
||||
g_free (c);
|
||||
|
||||
|
||||
c = next;
|
||||
}
|
||||
|
||||
@@ -730,7 +730,7 @@ free_constraints (Constraint **constraints,
|
||||
static void
|
||||
ensure_above (MetaWindow *above,
|
||||
MetaWindow *below)
|
||||
{
|
||||
{
|
||||
if (WINDOW_HAS_TRANSIENT_TYPE(above) &&
|
||||
above->layer < below->layer)
|
||||
{
|
||||
@@ -758,10 +758,10 @@ traverse_constraint (Constraint *c)
|
||||
|
||||
if (c->applied)
|
||||
return;
|
||||
|
||||
|
||||
ensure_above (c->above, c->below);
|
||||
c->applied = TRUE;
|
||||
|
||||
|
||||
tmp = c->next_nodes;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
@@ -785,13 +785,13 @@ apply_constraints (Constraint **constraints,
|
||||
while (i < n_constraints)
|
||||
{
|
||||
Constraint *c;
|
||||
|
||||
|
||||
c = constraints[i];
|
||||
while (c != NULL)
|
||||
{
|
||||
if (!c->has_prev)
|
||||
heads = g_slist_prepend (heads, c);
|
||||
|
||||
|
||||
c = c->next;
|
||||
}
|
||||
|
||||
@@ -805,7 +805,7 @@ apply_constraints (Constraint **constraints,
|
||||
Constraint *c = tmp->data;
|
||||
|
||||
traverse_constraint (c);
|
||||
|
||||
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
@@ -826,7 +826,7 @@ stack_do_window_deletions (MetaStack *stack)
|
||||
*/
|
||||
GList *tmp;
|
||||
int i;
|
||||
|
||||
|
||||
tmp = stack->removed;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
@@ -840,7 +840,7 @@ stack_do_window_deletions (MetaStack *stack)
|
||||
while (i > 0)
|
||||
{
|
||||
--i;
|
||||
|
||||
|
||||
/* there's no guarantee we'll actually find windows to
|
||||
* remove, e.g. the same xwindow could have been
|
||||
* added/removed before we ever synced, and we put
|
||||
@@ -877,34 +877,34 @@ stack_do_window_additions (MetaStack *stack)
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
"Adding %d windows to sorted list\n",
|
||||
n_added);
|
||||
|
||||
|
||||
old_size = stack->xwindows->len;
|
||||
g_array_set_size (stack->xwindows, old_size + n_added);
|
||||
|
||||
|
||||
end = &g_array_index (stack->xwindows, Window, old_size);
|
||||
|
||||
/* stack->added has the most recent additions at the
|
||||
* front of the list, so we need to reverse it
|
||||
*/
|
||||
stack->added = g_list_reverse (stack->added);
|
||||
|
||||
|
||||
i = 0;
|
||||
tmp = stack->added;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
MetaWindow *w;
|
||||
|
||||
|
||||
w = tmp->data;
|
||||
|
||||
|
||||
end[i] = w->xwindow;
|
||||
|
||||
/* add to the main list */
|
||||
stack->sorted = g_list_prepend (stack->sorted, w);
|
||||
|
||||
|
||||
++i;
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
|
||||
stack->need_resort = TRUE; /* may not be needed as we add to top */
|
||||
stack->need_constrain = TRUE;
|
||||
stack->need_relayer = TRUE;
|
||||
@@ -923,13 +923,13 @@ static void
|
||||
stack_do_relayer (MetaStack *stack)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
|
||||
if (!stack->need_relayer)
|
||||
return;
|
||||
|
||||
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
"Recomputing layers\n");
|
||||
|
||||
|
||||
tmp = stack->sorted;
|
||||
|
||||
while (tmp != NULL)
|
||||
@@ -954,7 +954,7 @@ stack_do_relayer (MetaStack *stack)
|
||||
* not layer
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
@@ -973,7 +973,7 @@ stack_do_constrain (MetaStack *stack)
|
||||
Constraint **constraints;
|
||||
|
||||
/* It'd be nice if this were all faster, probably */
|
||||
|
||||
|
||||
if (!stack->need_constrain)
|
||||
return;
|
||||
|
||||
@@ -988,10 +988,10 @@ stack_do_constrain (MetaStack *stack)
|
||||
graph_constraints (constraints, stack->n_positions);
|
||||
|
||||
apply_constraints (constraints, stack->n_positions);
|
||||
|
||||
|
||||
free_constraints (constraints, stack->n_positions);
|
||||
g_free (constraints);
|
||||
|
||||
|
||||
stack->need_constrain = FALSE;
|
||||
}
|
||||
|
||||
@@ -1005,10 +1005,10 @@ stack_do_resort (MetaStack *stack)
|
||||
{
|
||||
if (!stack->need_resort)
|
||||
return;
|
||||
|
||||
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
"Sorting stack list\n");
|
||||
|
||||
|
||||
stack->sorted = g_list_sort (stack->sorted,
|
||||
(GCompareFunc) compare_window_position);
|
||||
|
||||
@@ -1248,12 +1248,12 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
GArray *x11_hidden_stack_windows;
|
||||
int n_override_redirect = 0;
|
||||
MetaStackWindow guard_stack_window;
|
||||
|
||||
|
||||
/* Bail out if frozen */
|
||||
if (stack->freeze_count > 0)
|
||||
return;
|
||||
|
||||
meta_topic (META_DEBUG_STACK, "Syncing window stack to server\n");
|
||||
|
||||
meta_topic (META_DEBUG_STACK, "Syncing window stack to server\n");
|
||||
|
||||
stack_ensure_sorted (stack);
|
||||
|
||||
@@ -1284,7 +1284,7 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
MetaStackWindow stack_window;
|
||||
|
||||
stack_window.any.type = w->client_type;
|
||||
|
||||
|
||||
meta_topic (META_DEBUG_STACK, "%u:%d - %s ",
|
||||
w->layer, w->stack_position, w->desc);
|
||||
|
||||
@@ -1293,7 +1293,7 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
n_override_redirect++;
|
||||
else
|
||||
g_array_prepend_val (x11_stacked, w->xwindow);
|
||||
|
||||
|
||||
if (w->frame)
|
||||
top_level_window = w->frame->xwindow;
|
||||
else
|
||||
@@ -1336,12 +1336,12 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
if (x11_stacked->len != stack->xwindows->len - n_override_redirect)
|
||||
meta_bug ("%u windows stacked, %u windows exist in stack\n",
|
||||
x11_stacked->len, stack->xwindows->len);
|
||||
|
||||
|
||||
/* Sync to server */
|
||||
|
||||
meta_topic (META_DEBUG_STACK, "Restacking %u windows\n",
|
||||
all_root_children_stacked->len);
|
||||
|
||||
|
||||
meta_error_trap_push (stack->screen->display);
|
||||
|
||||
if (stack->last_all_root_children_stacked == NULL)
|
||||
@@ -1425,7 +1425,7 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
/* In this case we have an X window that we need to
|
||||
* put below a wayland window and this is the
|
||||
* topmost X window. */
|
||||
|
||||
|
||||
/* In X terms (because this is the topmost X window)
|
||||
* we want to
|
||||
* raise_window_relative_to_managed_windows() to
|
||||
@@ -1452,7 +1452,7 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
* *newp, then we fail to restack *newp; but on
|
||||
* unmanaging last_xwindow, we'll fix it up.
|
||||
*/
|
||||
|
||||
|
||||
meta_topic (META_DEBUG_STACK, "Placing window 0x%lx below 0x%lx\n",
|
||||
newp->any.type == META_WINDOW_CLIENT_TYPE_X11 ? newp->x11.xwindow : 0,
|
||||
last_xwindow);
|
||||
@@ -1572,7 +1572,7 @@ stack_sync_to_xserver (MetaStack *stack)
|
||||
* get removed from the stacking list when we unmanage it
|
||||
* and we'll fix stacking at that time.
|
||||
*/
|
||||
|
||||
|
||||
/* Sync _NET_CLIENT_LIST and _NET_CLIENT_LIST_STACKING */
|
||||
|
||||
XChangeProperty (stack->screen->display->xdisplay,
|
||||
@@ -1633,9 +1633,9 @@ meta_stack_get_above (MetaStack *stack,
|
||||
{
|
||||
GList *link;
|
||||
MetaWindow *above;
|
||||
|
||||
|
||||
stack_ensure_sorted (stack);
|
||||
|
||||
|
||||
link = g_list_find (stack->sorted, window);
|
||||
if (link == NULL)
|
||||
return NULL;
|
||||
@@ -1658,7 +1658,7 @@ meta_stack_get_below (MetaStack *stack,
|
||||
{
|
||||
GList *link;
|
||||
MetaWindow *below;
|
||||
|
||||
|
||||
stack_ensure_sorted (stack);
|
||||
|
||||
link = g_list_find (stack->sorted, window);
|
||||
@@ -1667,7 +1667,7 @@ meta_stack_get_below (MetaStack *stack,
|
||||
return NULL;
|
||||
if (link->next == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
below = link->next->data;
|
||||
|
||||
if (only_within_layer &&
|
||||
@@ -1801,22 +1801,22 @@ meta_stack_list_windows (MetaStack *stack,
|
||||
{
|
||||
GList *workspace_windows = NULL;
|
||||
GList *link;
|
||||
|
||||
|
||||
stack_ensure_sorted (stack); /* do adds/removes */
|
||||
|
||||
|
||||
link = stack->sorted;
|
||||
|
||||
|
||||
while (link)
|
||||
{
|
||||
MetaWindow *window = link->data;
|
||||
|
||||
|
||||
if (window &&
|
||||
(workspace == NULL || meta_window_located_on_workspace (window, workspace)))
|
||||
{
|
||||
workspace_windows = g_list_prepend (workspace_windows,
|
||||
window);
|
||||
}
|
||||
|
||||
|
||||
link = link->next;
|
||||
}
|
||||
|
||||
@@ -1833,7 +1833,7 @@ meta_stack_windows_cmp (MetaStack *stack,
|
||||
/* -1 means a below b */
|
||||
|
||||
stack_ensure_sorted (stack); /* update constraints, layers */
|
||||
|
||||
|
||||
if (window_a->layer < window_b->layer)
|
||||
return -1;
|
||||
else if (window_a->layer > window_b->layer)
|
||||
@@ -1883,7 +1883,7 @@ compare_pointers (gconstpointer a,
|
||||
return 1;
|
||||
else if (a < b)
|
||||
return -1;
|
||||
else
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1921,7 +1921,7 @@ meta_stack_set_positions (MetaStack *stack,
|
||||
|
||||
/* Make sure any adds or removes aren't in limbo -- is this needed? */
|
||||
stack_ensure_sorted (stack);
|
||||
|
||||
|
||||
if (!lists_contain_same_windows (windows, stack->sorted))
|
||||
{
|
||||
meta_warning ("This list of windows has somehow changed; not resetting "
|
||||
@@ -1934,7 +1934,7 @@ meta_stack_set_positions (MetaStack *stack,
|
||||
|
||||
stack->need_resort = TRUE;
|
||||
stack->need_constrain = TRUE;
|
||||
|
||||
|
||||
i = 0;
|
||||
tmp = windows;
|
||||
while (tmp != NULL)
|
||||
@@ -1943,7 +1943,7 @@ meta_stack_set_positions (MetaStack *stack,
|
||||
w->stack_position = i++;
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
"Reset the stack positions of (nearly) all windows\n");
|
||||
|
||||
@@ -1957,7 +1957,7 @@ meta_window_set_stack_position_no_sync (MetaWindow *window,
|
||||
{
|
||||
int low, high, delta;
|
||||
GList *tmp;
|
||||
|
||||
|
||||
g_return_if_fail (window->screen->stack != NULL);
|
||||
g_return_if_fail (window->stack_position >= 0);
|
||||
g_return_if_fail (position >= 0);
|
||||
@@ -1972,7 +1972,7 @@ meta_window_set_stack_position_no_sync (MetaWindow *window,
|
||||
|
||||
window->screen->stack->need_resort = TRUE;
|
||||
window->screen->stack->need_constrain = TRUE;
|
||||
|
||||
|
||||
if (position < window->stack_position)
|
||||
{
|
||||
low = position;
|
||||
@@ -1997,7 +1997,7 @@ meta_window_set_stack_position_no_sync (MetaWindow *window,
|
||||
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
|
||||
window->stack_position = position;
|
||||
|
||||
meta_topic (META_DEBUG_STACK,
|
||||
|
Reference in New Issue
Block a user