aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernandez Hernandez <leohdz172@protonmail.com>2022-02-15 17:38:56 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-11 15:11:02 -0600
commit4465dcb6da1fb91177fc26b4513d14c48eb56d5e (patch)
tree00bfba6c1ab6afc42bf0d09538f7de887d2782b2 /dwl.c
parentb97d9e1ce102fe0aa2331b480827b523164c7d42 (diff)
fix left border 'y' position
also add comment about border ordering
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 4e90d17..d2f910c 100644
--- a/dwl.c
+++ b/dwl.c
@@ -92,7 +92,7 @@ typedef struct {
/* Must be first */
unsigned int type; /* XDGShell or X11* */
struct wlr_scene_node *scene;
- struct wlr_scene_rect *border[4];
+ struct wlr_scene_rect *border[4]; /* top, bottom, left, right */
struct wlr_scene_node *scene_surface;
struct wl_list link;
struct wl_list flink;
@@ -1641,6 +1641,7 @@ resize(Client *c, int x, int y, int w, int h, int interact)
wlr_scene_rect_set_size(c->border[2], c->bw, c->geom.height - 2 * c->bw);
wlr_scene_rect_set_size(c->border[3], c->bw, c->geom.height - 2 * c->bw);
wlr_scene_node_set_position(&c->border[1]->node, 0, c->geom.height - c->bw);
+ wlr_scene_node_set_position(&c->border[2]->node, 0, c->bw);
wlr_scene_node_set_position(&c->border[3]->node, c->geom.width - c->bw, c->bw);
/* wlroots makes this a no-op if size hasn't changed */