sway-patched-tray-menu/sway
Ryan Dwyer 8533c35a9f Fix crash and render issues involving cursor_send_pointer_motion
Fixes #2303, as well as a crash.

To replicate the crash:

* Have multiple outputs
* In config: for_window [<criteria>] workspace foo
* Also in config: workspace foo output <left-output-name>
* Focus the right output, and ensure workspace foo doesn't exist
* Launch the app that triggers the criteria

When the view maps, it calls workspace_switch which calls
send_set_focus which calls cursor_send_pointer_motion which calls
transaction_commit_dirty. This call to transaction_commit_dirty is not
meant to happen at this time because the tree isn't guaranteed to be in
a consistent state, but I'm not sure how exactly this leads to the crash
or render issues.

In this case the transaction is already committed by the view
implementation's handle_map function. So the solution is to remove it
from cursor_send_pointer_motion and add it to the other functions in
cursor.c which call cursor_send_pointer_motion.
2018-07-19 19:49:50 +10:00
..
commands Implement default_floating_border command and adjust CSD behaviour 2018-07-17 10:14:33 +10:00
config config output: free command string if unused 2018-07-15 21:51:00 +01:00
desktop Don't unfocus when an override redirect window is mapped 2018-07-18 20:00:48 +01:00
input Fix crash and render issues involving cursor_send_pointer_motion 2018-07-19 19:49:50 +10:00
tree Merge branch 'master' into destroy-output-destroy-empty-workspaces 2018-07-18 09:32:03 +10:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c Implement default_floating_border command and adjust CSD behaviour 2018-07-17 10:14:33 +10:00
config.c Free individual criteria in free_config 2018-07-17 11:35:00 -04:00
criteria.c Free individual criteria in free_config 2018-07-17 11:35:00 -04:00
debug-tree.c Add L_FLOATING back to debug tree 2018-06-01 23:14:58 +10:00
ipc-json.c Mark containers as urgent in IPC if they have urgent views 2018-07-16 14:30:31 +10:00
ipc-server.c Make focus part of transactions 2018-07-15 22:08:26 +10:00
main.c Make focus part of transactions 2018-07-15 22:08:26 +10:00
meson.build Implement default_floating_border command and adjust CSD behaviour 2018-07-17 10:14:33 +10:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Merge pull request #2272 from RyanDwyer/simplify-transactions 2018-07-15 05:01:25 -07:00
sway-bar.5.scd Add sway-bar(5) 2018-05-11 21:13:43 -04:00
sway-input.5.scd Implement tap_button_map for input devices 2018-07-14 01:01:47 -04:00
sway.1.scd Add sway(5) 2018-05-11 21:03:43 -04:00
sway.5.scd Add documentation for urgent command 2018-07-16 10:15:18 +10:00