mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
resistance: only resist "entry" into another window space
This commit is contained in:
parent
2262851237
commit
8a0f1f9355
4 changed files with 33 additions and 26 deletions
|
|
@ -66,6 +66,7 @@ struct edge {
|
|||
* @target: position to which the moving edge will be moved
|
||||
* @oppose: opposing edge of encountered region
|
||||
* @align: aligned edge of encountered region
|
||||
* @lesser: true if the moving edge is top or left, false otherwise
|
||||
*
|
||||
* This function will be used by edge_find_neighbors and edge_find_outputs to
|
||||
* validate and select the "best" output or neighbor edge against which a
|
||||
|
|
@ -92,7 +93,7 @@ struct edge {
|
|||
* update the value of *best accordingly.
|
||||
*/
|
||||
typedef void (*edge_validator_t)(int *best, struct edge current,
|
||||
struct edge target, struct edge oppose, struct edge align);
|
||||
struct edge target, struct edge oppose, struct edge align, bool lesser);
|
||||
|
||||
void edges_initialize(struct border *edges);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue