mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-15 08:21:41 -04:00
Use is_scroller_layout() in a couple of places
This commit is contained in:
parent
c7470c8447
commit
5be4283d25
1 changed files with 2 additions and 10 deletions
12
src/mango.c
12
src/mango.c
|
|
@ -978,11 +978,7 @@ void clear_fullscreen_and_maximized_state(Monitor *m) {
|
||||||
/*清除全屏标志,还原全屏时清0的border*/
|
/*清除全屏标志,还原全屏时清0的border*/
|
||||||
void clear_fullscreen_flag(Client *c) {
|
void clear_fullscreen_flag(Client *c) {
|
||||||
|
|
||||||
if ((c->mon->pertag->ltidxs[get_tags_first_tag_num(c->tags)]->id ==
|
if (is_scroller_layout(c->mon) && !c->isfloating) {
|
||||||
SCROLLER ||
|
|
||||||
c->mon->pertag->ltidxs[get_tags_first_tag_num(c->tags)]->id ==
|
|
||||||
VERTICAL_SCROLLER) &&
|
|
||||||
!c->isfloating) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5257,11 +5253,7 @@ bool want_restore_fullscreen(Client *target_client) {
|
||||||
Client *c = NULL;
|
Client *c = NULL;
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (c && c != target_client && c->tags == target_client->tags &&
|
if (c && c != target_client && c->tags == target_client->tags &&
|
||||||
c == selmon->sel &&
|
c == selmon->sel && !is_scroller_layout(c->mon)) {
|
||||||
c->mon->pertag->ltidxs[get_tags_first_tag_num(c->tags)]->id !=
|
|
||||||
SCROLLER &&
|
|
||||||
c->mon->pertag->ltidxs[get_tags_first_tag_num(c->tags)]->id !=
|
|
||||||
VERTICAL_SCROLLER) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue