mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-14 04:27:53 -05:00
fix: isfloating rule not follow monitor rule
This commit is contained in:
parent
5a714b7562
commit
4efb8c5e06
3 changed files with 17 additions and 13 deletions
|
|
@ -740,7 +740,7 @@ int32_t centerwin(const Arg *arg) {
|
|||
return 0;
|
||||
|
||||
if (c->isfloating) {
|
||||
c->float_geom = setclient_coordinate_center(c, c->geom, 0, 0);
|
||||
c->float_geom = setclient_coordinate_center(c, c->mon, c->geom, 0, 0);
|
||||
c->iscustomsize = 1;
|
||||
resize(c, c->float_geom, 1);
|
||||
return 0;
|
||||
|
|
@ -1055,7 +1055,7 @@ int32_t tagmon(const Arg *arg) {
|
|||
c->float_geom.height =
|
||||
(int32_t)(c->float_geom.height * c->mon->w.height / selmon->w.height);
|
||||
selmon = c->mon;
|
||||
c->float_geom = setclient_coordinate_center(c, c->float_geom, 0, 0);
|
||||
c->float_geom = setclient_coordinate_center(c, c->mon, c->float_geom, 0, 0);
|
||||
|
||||
// 重新计算居中的坐标
|
||||
// 重新计算居中的坐标
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue