mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-26 01:40:18 -05:00
fix: when_single behaviour with floating windows
This commit is contained in:
parent
88e868caf8
commit
c9b72da1e0
2 changed files with 6 additions and 5 deletions
|
|
@ -240,7 +240,7 @@ void buffer_set_effect(Client *c, BufferData data) {
|
|||
if (c == grabc)
|
||||
data.should_scale = false;
|
||||
|
||||
if (c->isfullscreen || (no_radius_when_single && c->mon &&
|
||||
if (c->isfullscreen || (no_radius_when_single && !c->isfloating && c->mon &&
|
||||
c->mon->visible_tiling_clients == 1)) {
|
||||
data.corner_location = CORNER_LOCATION_NONE;
|
||||
}
|
||||
|
|
@ -265,7 +265,7 @@ void client_draw_shadow(Client *c) {
|
|||
|
||||
bool hit_no_border = check_hit_no_border(c);
|
||||
enum corner_location current_corner_location =
|
||||
c->isfullscreen || (no_radius_when_single && c->mon &&
|
||||
c->isfullscreen || (no_radius_when_single && !c->isfloating && c->mon &&
|
||||
c->mon->visible_tiling_clients == 1)
|
||||
? CORNER_LOCATION_NONE
|
||||
: CORNER_LOCATION_ALL;
|
||||
|
|
@ -355,7 +355,7 @@ void apply_border(Client *c) {
|
|||
|
||||
bool hit_no_border = check_hit_no_border(c);
|
||||
enum corner_location current_corner_location =
|
||||
c->isfullscreen || (no_radius_when_single && c->mon &&
|
||||
c->isfullscreen || (no_radius_when_single && !c->isfloating && c->mon &&
|
||||
c->mon->visible_tiling_clients == 1)
|
||||
? CORNER_LOCATION_NONE
|
||||
: CORNER_LOCATION_ALL;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ bool check_hit_no_border(Client *c) {
|
|||
}
|
||||
}
|
||||
|
||||
if (no_border_when_single && c && c->mon && c->mon->visible_clients == 1) {
|
||||
if (no_border_when_single && c && !c->isfloating &&
|
||||
c->mon && c->mon->visible_tiling_clients == 1) {
|
||||
hit_no_border = true;
|
||||
}
|
||||
return hit_no_border;
|
||||
|
|
@ -402,4 +403,4 @@ float *get_border_color(Client *c) {
|
|||
} else {
|
||||
return bordercolor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue