swayfx/sway/tree
Kenny Levinsen 2e06403548 container: Add view_container_content_at
container_at checks if the position provided matches the currently
focused container with view_container_at as a fast path.

view_container_at checks using the main container geometry, which
includes the titlebar and border area. If a tabbed container is focused,
then positions over unfocused tabs are incorrectly reported as belonging
to the focused container, breaking focus on click.

Add view_container_content_at for use in the focused container fast path
which only tests container content area, and fall back to full workspace
scans for border and titlebar areas.

Closes: https://github.com/swaywm/sway/issues/6074
2021-03-10 17:50:57 +01:00
..
arrange.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
container.c container: Add view_container_content_at 2021-03-10 17:50:57 +01:00
node.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
output.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
root.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00
view.c view: Set parent for view_child subsurfaces on init 2021-02-23 00:17:32 +01:00
workspace.c container: Move pending state to state struct 2021-02-16 22:05:00 -05:00