sway-patched-tray-menu/sway/desktop
Ryan Dwyer bdae625cb3 Rebase the cursor after mapping a view
I originally put the rebase at the end of view_map, but at this point
the view is still at its native size and will ignore the motion event if
it falls outside of its native size. The only way to do this properly is
to rebase the cursor later - either after sending the configure, after
the view commits with the new size, or after applying the transaction. I
chose to do it after applying the transaction for simplicity.

I then attempted to just call cursor_rebase after applying every
transaction, but this causes crashes when exiting sway (and possibly
other places) because cursor_rebase assumes the tree is in a valid
state.

So my chosen solution introduces transaction_commit_dirty_with_callback
which allows handle_map to register a callback which will run when the
transaction is applied.
2018-10-24 19:38:52 +10:00
..
desktop.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
idle_inhibit_v1.c Fix crash when destroying an idle-inhibiting client 2018-09-16 23:20:58 +10:00
layer_shell.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
output.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
render.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
transaction.c Rebase the cursor after mapping a view 2018-10-24 19:38:52 +10:00
xdg_shell.c Rebase the cursor after mapping a view 2018-10-24 19:38:52 +10:00
xdg_shell_v6.c Rebase the cursor after mapping a view 2018-10-24 19:38:52 +10:00
xwayland.c Rebase the cursor after mapping a view 2018-10-24 19:38:52 +10:00