mirror of
https://github.com/swaywm/sway.git
synced 2026-02-28 01:41:02 -05:00
smart_borders: separate smartness from edge types
This commit is contained in:
parent
38b37247ff
commit
3975ca28c2
6 changed files with 24 additions and 19 deletions
|
|
@ -215,8 +215,8 @@ void view_autoconfigure(struct sway_view *view) {
|
|||
|
||||
if (!container_is_floating(con) && ws) {
|
||||
|
||||
bool smart = config->hide_edge_borders == E_SMART ||
|
||||
(config->hide_edge_borders == E_SMART_NO_GAPS &&
|
||||
bool smart = config->hide_edge_borders_smart == ESMART_ON ||
|
||||
(config->hide_edge_borders_smart == ESMART_NO_GAPS &&
|
||||
!gaps_to_edge(view));
|
||||
bool hide_smart = smart && view_is_only_visible(view);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue