tiling: Never render pill indicators in keyboard mode

This commit is contained in:
Victoria Brekenfeld 2023-07-26 16:11:36 +02:00
parent 86c3e00dfd
commit bd276a2f23

View file

@ -3127,6 +3127,7 @@ where
geometries.insert(node_id.clone(), geo); geometries.insert(node_id.clone(), geo);
if mouse_tiling.is_some() {
if let Some(PillIndicator::Outer(direction)) = pill_indicator { if let Some(PillIndicator::Outer(direction)) = pill_indicator {
let (pill_geo, remaining_geo) = match direction { let (pill_geo, remaining_geo) = match direction {
Direction::Left => ( Direction::Left => (
@ -3187,6 +3188,7 @@ where
geo = remaining_geo; geo = remaining_geo;
}; };
}
if !is_placeholder_group { if !is_placeholder_group {
geo.loc += (outer_gap, outer_gap).into(); geo.loc += (outer_gap, outer_gap).into();
@ -3223,7 +3225,9 @@ where
(geo.loc.x, geo.loc.y + previous), (geo.loc.x, geo.loc.y + previous),
(geo.size.w, *size), (geo.size.w, *size),
); );
if let Some(PillIndicator::Inner(pill_idx)) = pill_indicator { if mouse_tiling.is_some() {
if let Some(PillIndicator::Inner(pill_idx)) = pill_indicator
{
if *pill_idx == idx { if *pill_idx == idx {
geo.size.h -= 16; geo.size.h -= 16;
} }
@ -3252,6 +3256,7 @@ where
geo.size.h -= 16; geo.size.h -= 16;
} }
} }
}
stack.push(geo); stack.push(geo);
} }
} }
@ -3263,7 +3268,9 @@ where
(geo.loc.x + previous, geo.loc.y), (geo.loc.x + previous, geo.loc.y),
(*size, geo.size.h), (*size, geo.size.h),
); );
if let Some(PillIndicator::Inner(pill_idx)) = pill_indicator { if mouse_tiling.is_some() {
if let Some(PillIndicator::Inner(pill_idx)) = pill_indicator
{
if *pill_idx == idx { if *pill_idx == idx {
geo.size.w -= 16; geo.size.w -= 16;
} }
@ -3292,6 +3299,7 @@ where
geo.size.w -= 16; geo.size.w -= 16;
} }
} }
}
stack.push(geo); stack.push(geo);
} }
} }