mirror of
https://github.com/labwc/labwc.git
synced 2026-03-22 05:33:57 -04:00
view: remove an obsolete code in view_snap_to_edge()
We no longer need to call view_apply_tiled_geometry() there, since we now
clear view->tiled when dragging a tiled window since 9f51384.
This commit is contained in:
parent
0db3b9309b
commit
af6a0df231
1 changed files with 0 additions and 10 deletions
10
src/view.c
10
src/view.c
|
|
@ -2145,17 +2145,7 @@ view_snap_to_edge(struct view *view, enum lab_edge edge,
|
||||||
if (across_outputs && view->tiled == edge && view->maximized == VIEW_AXIS_NONE) {
|
if (across_outputs && view->tiled == edge && view->maximized == VIEW_AXIS_NONE) {
|
||||||
/* We are already tiled for this edge; try to switch outputs */
|
/* We are already tiled for this edge; try to switch outputs */
|
||||||
output = output_get_adjacent(view->output, edge, /* wrap */ false);
|
output = output_get_adjacent(view->output, edge, /* wrap */ false);
|
||||||
|
|
||||||
if (!output) {
|
if (!output) {
|
||||||
/*
|
|
||||||
* No more output to move to
|
|
||||||
*
|
|
||||||
* We re-apply the tiled geometry without changing any
|
|
||||||
* state because the window might have been moved away
|
|
||||||
* (and thus got untiled) and then snapped back to the
|
|
||||||
* original edge.
|
|
||||||
*/
|
|
||||||
view_apply_tiled_geometry(view);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue