edges: do not apply resistance to invisible edges

This commit is contained in:
Consolatis 2024-02-08 14:23:06 +01:00 committed by Johan Malm
parent 551feaca0a
commit 29a26d5ff7
6 changed files with 235 additions and 37 deletions

View file

@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
#include "edges.h"
#include "input/keyboard.h"
#include "labwc.h"
#include "regions.h"
@ -123,6 +124,9 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
if (rc.resize_indicator) {
resize_indicator_show(view);
}
if (rc.window_edge_strength) {
edges_calculate_visibility(server, view);
}
}
/* Returns true if view was snapped to any edge */