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:
tokyo4j 2025-09-15 03:54:40 +09:00 committed by Hiroaki Yamamoto
parent 0db3b9309b
commit af6a0df231

View file

@ -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) {
/* We are already tiled for this edge; try to switch outputs */
output = output_get_adjacent(view->output, edge, /* wrap */ false);
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;
}