mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
edges: do not apply resistance to invisible edges
This commit is contained in:
parent
551feaca0a
commit
29a26d5ff7
6 changed files with 235 additions and 37 deletions
|
|
@ -3,11 +3,15 @@
|
|||
#define LABWC_EDGES_H
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "common/macros.h"
|
||||
|
||||
struct border;
|
||||
struct output;
|
||||
struct server;
|
||||
struct view;
|
||||
struct wlr_box;
|
||||
|
||||
static inline int
|
||||
clipped_add(int a, int b)
|
||||
|
|
@ -102,7 +106,7 @@ void edges_adjust_geom(struct view *view, struct border edges,
|
|||
|
||||
void edges_find_neighbors(struct border *nearest_edges, struct view *view,
|
||||
struct wlr_box target, struct output *output,
|
||||
edge_validator_t validator, bool use_pending);
|
||||
edge_validator_t validator, bool use_pending, bool ignore_hidden);
|
||||
|
||||
void edges_find_outputs(struct border *nearest_edges, struct view *view,
|
||||
struct wlr_box target, struct output *output,
|
||||
|
|
@ -116,4 +120,5 @@ void edges_adjust_resize_geom(struct view *view, struct border edges,
|
|||
|
||||
bool edges_traverse_edge(struct edge current, struct edge target, struct edge edge);
|
||||
|
||||
void edges_calculate_visibility(struct server *server, struct view *ignored_view);
|
||||
#endif /* LABWC_EDGES_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue