ssd: set squared corners for tiled views conditionally

Respect the snapping settings for notify-client.
This commit is contained in:
Jens Peters 2024-06-22 23:40:19 +02:00 committed by Johan Malm
parent 2c979fe269
commit 3b605b0142
3 changed files with 22 additions and 2 deletions

View file

@ -1171,6 +1171,23 @@ view_is_tiled(struct view *view)
|| view->tiled_region_evacuate);
}
bool
view_is_tiled_and_notify_tiled(struct view *view)
{
switch (rc.snap_tiling_events_mode) {
case LAB_TILING_EVENTS_NEVER:
return false;
case LAB_TILING_EVENTS_REGION:
return view->tiled_region || view->tiled_region_evacuate;
case LAB_TILING_EVENTS_EDGE:
return view->tiled;
case LAB_TILING_EVENTS_ALWAYS:
return view_is_tiled(view);
}
return false;
}
bool
view_is_floating(struct view *view)
{