mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-16 06:59:52 -05:00
opt: remove useless scratchpad_width and scratachpad_height
This commit is contained in:
parent
30b41a59e7
commit
27d23165bd
3 changed files with 26 additions and 31 deletions
|
|
@ -343,6 +343,7 @@ void movewin(const Arg *arg) {
|
|||
break;
|
||||
}
|
||||
|
||||
c->iscustomsize = 1;
|
||||
c->oldgeom = c->geom;
|
||||
resize(c, c->geom, 0);
|
||||
}
|
||||
|
|
@ -384,6 +385,7 @@ void resizewin(const Arg *arg) {
|
|||
break;
|
||||
}
|
||||
|
||||
c->iscustomsize = 1;
|
||||
c->oldgeom = c->geom;
|
||||
resize(c, c->geom, 0);
|
||||
}
|
||||
|
|
@ -533,7 +535,7 @@ void smartmovewin(const Arg *arg) {
|
|||
|
||||
c->oldgeom = (struct wlr_box){
|
||||
.x = nx, .y = ny, .width = c->geom.width, .height = c->geom.height};
|
||||
|
||||
c->iscustomsize = 1;
|
||||
resize(c, c->oldgeom, 1);
|
||||
}
|
||||
|
||||
|
|
@ -602,7 +604,7 @@ void smartresizewin(const Arg *arg) {
|
|||
|
||||
c->oldgeom = (struct wlr_box){
|
||||
.x = c->geom.x, .y = c->geom.y, .width = nw, .height = nh};
|
||||
|
||||
c->iscustomsize = 1;
|
||||
resize(c, c->oldgeom, 1);
|
||||
}
|
||||
|
||||
|
|
@ -616,7 +618,7 @@ void centerwin(const Arg *arg) {
|
|||
setfloating(c, true);
|
||||
|
||||
c->oldgeom = setclient_coordinate_center(c, c->geom, 0, 0);
|
||||
|
||||
c->iscustomsize = 1;
|
||||
resize(c, c->oldgeom, 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue