swayfx/sway/desktop
Ryan Dwyer 8314019f66 Fix race condition crashes when unmapping views
This fixes two issues which were both introduced in #2396.

First issue:
The PR changes the location of the buffer save to transaction_apply, but
puts it inside the should_configure block. For unmapping (destroying)
views, should_configure returns false so it wasn't saving the buffer. If
a frame was rendered between the unmap and the transaction applying then
it would result in a crash.

Second issue:
If a destroying view is involved in two transactions, we must not
release the buffer between the transactions because there is no live
buffer to grab any more.
2018-08-02 20:54:03 +10:00
..
desktop.c Implement some floating move commands 2018-07-09 23:38:29 +10:00
idle_inhibit_v1.c Fix memory leak in sway/desktop/idle_inhibit_v1.c 2018-07-17 11:35:24 -04:00
layer_shell.c Fix memory leak in handle_layer_shell_surface 2018-07-17 11:35:24 -04:00
output.c Close popups when changing focus 2018-07-31 19:58:34 +10:00
render.c Merge branch 'master' into fix-resize-wiggle 2018-08-02 08:11:10 +01:00
transaction.c Fix race condition crashes when unmapping views 2018-08-02 20:54:03 +10:00
xdg_shell.c Close popups when changing focus 2018-07-31 19:58:34 +10:00
xdg_shell_v6.c Close popups when changing focus 2018-07-31 19:58:34 +10:00
xwayland.c Don't give focus if xwayland window has a type hint 2018-07-29 17:28:21 +01:00