mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-03 07:15:44 -04:00
format
This commit is contained in:
parent
6cbd713970
commit
daecd54b64
2 changed files with 8 additions and 5 deletions
|
|
@ -240,8 +240,9 @@ void buffer_set_effect(Client *c, BufferData data) {
|
||||||
if (c == grabc)
|
if (c == grabc)
|
||||||
data.should_scale = false;
|
data.should_scale = false;
|
||||||
|
|
||||||
if (c->isfullscreen || (no_radius_when_single && !c->isfloating && !c->ismaximizescreen && c->mon &&
|
if (c->isfullscreen ||
|
||||||
c->mon->visible_tiling_clients == 1)) {
|
(no_radius_when_single && !c->isfloating && !c->ismaximizescreen &&
|
||||||
|
c->mon && c->mon->visible_tiling_clients == 1)) {
|
||||||
data.corner_location = CORNER_LOCATION_NONE;
|
data.corner_location = CORNER_LOCATION_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -265,7 +266,8 @@ void client_draw_shadow(Client *c) {
|
||||||
|
|
||||||
bool hit_no_border = check_hit_no_border(c);
|
bool hit_no_border = check_hit_no_border(c);
|
||||||
enum corner_location current_corner_location =
|
enum corner_location current_corner_location =
|
||||||
c->isfullscreen || (no_radius_when_single && !c->isfloating && !c->ismaximizescreen && c->mon &&
|
c->isfullscreen || (no_radius_when_single && !c->isfloating &&
|
||||||
|
!c->ismaximizescreen && c->mon &&
|
||||||
c->mon->visible_tiling_clients == 1)
|
c->mon->visible_tiling_clients == 1)
|
||||||
? CORNER_LOCATION_NONE
|
? CORNER_LOCATION_NONE
|
||||||
: CORNER_LOCATION_ALL;
|
: CORNER_LOCATION_ALL;
|
||||||
|
|
@ -355,7 +357,8 @@ void apply_border(Client *c) {
|
||||||
|
|
||||||
bool hit_no_border = check_hit_no_border(c);
|
bool hit_no_border = check_hit_no_border(c);
|
||||||
enum corner_location current_corner_location =
|
enum corner_location current_corner_location =
|
||||||
c->isfullscreen || (no_radius_when_single && !c->isfloating && !c->ismaximizescreen && c->mon &&
|
c->isfullscreen || (no_radius_when_single && !c->isfloating &&
|
||||||
|
!c->ismaximizescreen && c->mon &&
|
||||||
c->mon->visible_tiling_clients == 1)
|
c->mon->visible_tiling_clients == 1)
|
||||||
? CORNER_LOCATION_NONE
|
? CORNER_LOCATION_NONE
|
||||||
: CORNER_LOCATION_ALL;
|
: CORNER_LOCATION_ALL;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ bool check_hit_no_border(Client *c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (no_border_when_single && c && !c->isfloating && !c->ismaximizescreen &&
|
if (no_border_when_single && c && !c->isfloating && !c->ismaximizescreen &&
|
||||||
c->mon && c->mon->visible_tiling_clients == 1) {
|
c->mon && c->mon->visible_tiling_clients == 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue