diff --git a/debian/patches/reset_hardware_cursor_on_failure.patch b/debian/patches/reset_hardware_cursor_on_failure.patch new file mode 100644 index 0000000..b5336d7 --- /dev/null +++ b/debian/patches/reset_hardware_cursor_on_failure.patch @@ -0,0 +1,13 @@ +diff --git a/types/output/cursor.c b/types/output/cursor.c +index ad37a04..341692d 100644 +--- a/types/output/cursor.c ++++ b/types/output/cursor.c +@@ -359,6 +359,8 @@ static bool output_cursor_attempt_hardware(struct wlr_output_cursor *cursor) { + return false; + } + ++ output->hardware_cursor = NULL; ++ + struct wlr_texture *texture = cursor->texture; + + // If the cursor was hidden or was a software cursor, the hardware diff --git a/debian/patches/series b/debian/patches/series index 3263ad2..e8ba015 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ Revert-layer-shell-error-on-0-dimension-without-anchors.patch gles2-Avoid-crash-when-glGetInteger64vEXT-is-missing.patch emit-destroy-signal-in-destroy-function.patch init-destroy-signal.patch +reset_hardware_cursor_on_failure.patch