opt: not need to reset float_geom in setfullscreen and setmaximizescreen

This commit is contained in:
DreamMaoMao 2026-03-19 17:02:48 +08:00
parent 76bc1d1ade
commit 151659e92e

View file

@ -5179,9 +5179,6 @@ void setmaximizescreen(Client *c, int32_t maximizescreen) {
exit_scroller_stack(c);
if (c->isfloating)
c->float_geom = c->geom;
maximizescreen_box.x = c->mon->w.x + config.gappoh;
maximizescreen_box.y = c->mon->w.y + config.gappov;
maximizescreen_box.width = c->mon->w.width - 2 * config.gappoh;
@ -5246,9 +5243,6 @@ void setfullscreen(Client *c, int32_t fullscreen) // 用自定义全屏代理自
c->ismaximizescreen = 0;
exit_scroller_stack(c);
if (c->isfloating)
c->float_geom = c->geom;
c->isfakefullscreen = 0;
c->bw = 0;