mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-17 06:59:52 -05:00
opt: remeber the position and size when use movewin and resizewin dispatch
This commit is contained in:
parent
ed7d768b3e
commit
9718e87b2d
1 changed files with 8 additions and 9 deletions
17
maomao.c
17
maomao.c
|
|
@ -7223,11 +7223,10 @@ void movewin(const Arg *arg) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
resize(
|
c->oldgeom = (struct wlr_box){
|
||||||
c,
|
.x = nx, .y = ny, .width = c->geom.width, .height = c->geom.height};
|
||||||
(struct wlr_box){
|
|
||||||
.x = nx, .y = ny, .width = c->geom.width, .height = c->geom.height},
|
resize(c, c->oldgeom, 1);
|
||||||
1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void resizewin(const Arg *arg) {
|
void resizewin(const Arg *arg) {
|
||||||
|
|
@ -7293,10 +7292,10 @@ void resizewin(const Arg *arg) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
resize(c,
|
c->oldgeom = (struct wlr_box){
|
||||||
(struct wlr_box){
|
.x = c->geom.x, .y = c->geom.y, .width = nw, .height = nh};
|
||||||
.x = c->geom.x, .y = c->geom.y, .width = nw, .height = nh},
|
|
||||||
1);
|
resize(c, c->oldgeom, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue