1
1
mirror of https://github.com/swaywm/sway synced 2024-11-22 16:32:16 +01:00
sway/sway
Kenny Levinsen 5312376077 desktop/output: Clear repaint timer earlier in destroy
The teardown of a sway_output is split in two: begin_destroy and
output_destroy. The former clears some state such as NULL'ing the
reference to wlr_output, while the latter frees the struct and its
remaining resources.

If an output is destroyed while a repaint timer is pending, future frame
callbacks will no longer occur as the listener is torn down in
begin_destroy, but the repaint timer is not torn down and may still
fire until output_destroy is hit. As begin_destroy cleared the reference
to wlr_output, this leads to a NULL-pointer dereference.

Tear down the repaint timer in begin_destroy as there is no need for it.

Fixes: fdc4318ac66d ("desktop/output: Clear frame_pending even output is disabled")
2024-11-17 16:03:35 -05:00
..
commands commands/include: handle many files in single line 2024-11-17 19:18:51 +01:00
config config/output: Update output position in two passes 2024-11-06 01:28:55 +01:00
desktop desktop/output: Clear repaint timer earlier in destroy 2024-11-17 16:03:35 -05:00
input input/seatop_default: refactor move/resize button logic 2024-10-20 00:26:09 -04:00
tree desktop/output: Clear repaint timer earlier in destroy 2024-11-17 16:03:35 -05:00
commands.c Add support for tearing-control-v1 2024-08-05 02:13:49 +02:00
config.c config: Batch input/output configuration on load 2024-09-21 17:50:24 -04:00
criteria.c Drop server.h include from input/input-manager.h 2024-05-27 09:28:43 -04:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Add null-safety check for virtual keyboard keymaps 2024-08-09 22:03:41 +02:00
ipc-server.c ipc-server: Force modeset if needed after executing commands 2024-11-17 19:11:58 +01:00
lock.c ext-session-lock: Do not use commit listener to arrange 2024-09-20 00:26:36 -04:00
main.c config: Force modeset before running deferred configs 2024-11-17 19:11:58 +01:00
meson.build Add support for tearing-control-v1 2024-08-05 02:13:49 +02:00
realtime.c realtime: request SCHED_RR using CAP_SYS_NICE 2022-05-18 11:20:17 +02:00
scene_descriptor.c fix: sway crashes if switch to another workspace with surface when IME popup is shown 2024-10-07 23:07:25 -04:00
server.c sway/server: bind to presentation-time-v2 2024-10-27 19:20:20 -04:00
sway_text_node.c sway_text_node: avoid unnecessary redraws 2024-07-03 18:30:08 -04:00
sway-bar.5.scd man: update Pango font description URL 2021-08-04 02:15:04 +02:00
sway-input.5.scd Implement clickfinger_button_map support. 2024-07-04 22:47:46 +02:00
sway-ipc.7.scd Implement clickfinger_button_map support. 2024-07-04 22:47:46 +02:00
sway-output.5.scd Add toggle for output adaptive_sync 2024-09-20 15:38:27 +02:00
sway.1.scd man: update maintainer 2021-01-08 09:33:51 +01:00
sway.5.scd commands/include: handle many files in single line 2024-11-17 19:18:51 +01:00
swaynag.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
xdg_activation_v1.c xdg-activation: launcher tokens are activation requests 2024-07-06 16:12:27 +02:00
xdg_decoration.c xdg-shell: chase events update 2023-11-23 19:41:57 +01:00