mirror of
https://github.com/labwc/labwc.git
synced 2026-02-12 04:27:57 -05:00
ssd: set squared corners for tiled views conditionally
Respect the snapping settings for notify-client.
This commit is contained in:
parent
2c979fe269
commit
3b605b0142
3 changed files with 22 additions and 2 deletions
17
src/view.c
17
src/view.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue