mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Replace enum resize_edge with wlr_edges
This commit is contained in:
parent
389610795b
commit
f129b1b89f
4 changed files with 11 additions and 16 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <wlr/util/edges.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "sway/commands.h"
|
||||
#include "sway/tree/arrange.h"
|
||||
|
|
@ -250,10 +251,10 @@ static void resize_tiled(struct sway_container *parent, int amount,
|
|||
}
|
||||
}
|
||||
|
||||
enum resize_edge minor_edge = axis == RESIZE_AXIS_HORIZONTAL ?
|
||||
RESIZE_EDGE_LEFT : RESIZE_EDGE_TOP;
|
||||
enum resize_edge major_edge = axis == RESIZE_AXIS_HORIZONTAL ?
|
||||
RESIZE_EDGE_RIGHT : RESIZE_EDGE_BOTTOM;
|
||||
enum wlr_edges minor_edge = axis == RESIZE_AXIS_HORIZONTAL ?
|
||||
WLR_EDGE_LEFT : WLR_EDGE_TOP;
|
||||
enum wlr_edges major_edge = axis == RESIZE_AXIS_HORIZONTAL ?
|
||||
WLR_EDGE_RIGHT : WLR_EDGE_BOTTOM;
|
||||
|
||||
for (int i = 0; i < parent->parent->children->length; i++) {
|
||||
struct sway_container *sibling = parent->parent->children->items[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue