mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-05 01:40:57 -05:00
fix: rounded corners being drawn on windows that extend out of screen
This commit is contained in:
parent
75407c9727
commit
a1a7cf5a7a
1 changed files with 7 additions and 5 deletions
|
|
@ -354,11 +354,13 @@ void apply_border(Client *c) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
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->mon &&
|
if (c->isfullscreen || (no_radius_when_single && c->mon &&
|
||||||
c->mon->visible_tiling_clients == 1)
|
c->mon->visible_tiling_clients == 1)) {
|
||||||
? CORNER_LOCATION_NONE
|
current_corner_location = CORNER_LOCATION_NONE;
|
||||||
: CORNER_LOCATION_ALL;
|
} else {
|
||||||
|
current_corner_location = set_client_corner_location(c);
|
||||||
|
}
|
||||||
|
|
||||||
// Handle no-border cases
|
// Handle no-border cases
|
||||||
if (hit_no_border && smartgaps) {
|
if (hit_no_border && smartgaps) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue