mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-25 09:07:28 -04:00
opt: not unset maximize state if enable force_maximize
This commit is contained in:
parent
dcce54db67
commit
8dc02ec029
2 changed files with 5 additions and 4 deletions
|
|
@ -569,8 +569,8 @@ int32_t main(int32_t argc, char *argv[]) {
|
|||
mode = WATCH;
|
||||
break;
|
||||
case 'o':
|
||||
if (mode == GET || mode == WATCH)
|
||||
oflag = 1;
|
||||
if (mode == GET || mode == WATCH)
|
||||
oflag = 1;
|
||||
else if (mode == SET)
|
||||
output_name = EARGF(usage());
|
||||
else
|
||||
|
|
|
|||
|
|
@ -5240,11 +5240,12 @@ void setfullscreen(Client *c, int32_t fullscreen) // 用自定义全屏代理自
|
|||
|
||||
if (fullscreen) {
|
||||
|
||||
if (c->ismaximizescreen) {
|
||||
if (c->ismaximizescreen && !c->force_maximize) {
|
||||
client_set_maximized(c, false);
|
||||
c->ismaximizescreen = 0;
|
||||
}
|
||||
|
||||
c->ismaximizescreen = 0;
|
||||
|
||||
exit_scroller_stack(c);
|
||||
c->isfakefullscreen = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue