Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wayvnc for openSUSE:Factory checked in at 2022-01-26 21:26:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wayvnc (Old) and /work/SRC/openSUSE:Factory/.wayvnc.new.1938 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wayvnc" Wed Jan 26 21:26:53 2022 rev:4 rq:949134 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/wayvnc/wayvnc.changes 2021-03-02 12:45:49.520374639 +0100 +++ /work/SRC/openSUSE:Factory/.wayvnc.new.1938/wayvnc.changes 2022-01-26 21:27:28.337790600 +0100 @@ -1,0 +2,8 @@ +Mon Jan 24 22:04:43 UTC 2022 - Dirk M??ller <[email protected]> + +- update to 0.4.1: + * main: Pin wl_output version to 3 + * screencopy: Set upper bounds on protocol version + * main: Set upper bounds on pointer manager version + +------------------------------------------------------------------- Old: ---- v0.4.0.tar.gz New: ---- v0.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wayvnc.spec ++++++ --- /var/tmp/diff_new_pack.qpSBKC/_old 2022-01-26 21:27:28.797787428 +0100 +++ /var/tmp/diff_new_pack.qpSBKC/_new 2022-01-26 21:27:28.801787400 +0100 @@ -1,7 +1,7 @@ # # spec file for package wayvnc # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: wayvnc -Version: 0.4.0 +Version: 0.4.1 Release: 0 Summary: A VNC server for wlroots based Wayland compositors License: ISC ++++++ v0.4.0.tar.gz -> v0.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wayvnc-0.4.0/include/screencopy.h new/wayvnc-0.4.1/include/screencopy.h --- old/wayvnc-0.4.0/include/screencopy.h 2021-01-02 00:29:40.000000000 +0100 +++ new/wayvnc-0.4.1/include/screencopy.h 2021-12-16 21:19:17.000000000 +0100 @@ -47,7 +47,6 @@ struct zwlr_screencopy_manager_v1* manager; struct zwlr_screencopy_frame_v1* frame; - int version; void* userdata; void (*on_done)(struct screencopy*); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wayvnc-0.4.0/meson.build new/wayvnc-0.4.1/meson.build --- old/wayvnc-0.4.0/meson.build 2021-01-02 00:29:40.000000000 +0100 +++ new/wayvnc-0.4.1/meson.build 2021-12-16 21:19:17.000000000 +0100 @@ -1,7 +1,7 @@ project( 'wayvnc', 'c', - version: '0.4.0', + version: '0.4.1', license: 'ISC', default_options: [ 'c_std=gnu11', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wayvnc-0.4.0/src/main.c new/wayvnc-0.4.1/src/main.c --- old/wayvnc-0.4.0/src/main.c 2021-01-02 00:29:40.000000000 +0100 +++ new/wayvnc-0.4.1/src/main.c 2021-12-16 21:19:17.000000000 +0100 @@ -81,8 +81,6 @@ struct zwp_virtual_keyboard_manager_v1* keyboard_manager; struct zwlr_virtual_pointer_manager_v1* pointer_manager; - int pointer_manager_version; - const struct output* selected_output; const struct seat* selected_seat; @@ -133,8 +131,7 @@ if (strcmp(interface, wl_output_interface.name) == 0) { struct wl_output* wl_output = - wl_registry_bind(registry, id, &wl_output_interface, - version); + wl_registry_bind(registry, id, &wl_output_interface, 3); if (!wl_output) return; @@ -162,8 +159,7 @@ self->screencopy.manager = wl_registry_bind(registry, id, &zwlr_screencopy_manager_v1_interface, - version); - self->screencopy.version = version; + MIN(3, version)); return; } @@ -171,8 +167,7 @@ self->pointer_manager = wl_registry_bind(registry, id, &zwlr_virtual_pointer_manager_v1_interface, - version); - self->pointer_manager_version = version; + MIN(2, version)); return; }; @@ -959,7 +954,10 @@ self.pointer_backend.vnc = self.nvnc; self.pointer_backend.output = self.selected_output; - self.pointer_backend.pointer = self.pointer_manager_version == 2 + int pointer_manager_version = + zwlr_virtual_pointer_manager_v1_get_version(self.pointer_manager); + + self.pointer_backend.pointer = pointer_manager_version >= 2 ? zwlr_virtual_pointer_manager_v1_create_virtual_pointer_with_output( self.pointer_manager, self.selected_seat->wl_seat, out->wl_output) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wayvnc-0.4.0/src/screencopy.c new/wayvnc-0.4.1/src/screencopy.c --- old/wayvnc-0.4.0/src/screencopy.c 2021-01-02 00:29:40.000000000 +0100 +++ new/wayvnc-0.4.1/src/screencopy.c 2021-12-16 21:19:17.000000000 +0100 @@ -130,7 +130,8 @@ self->wl_shm_height = height; self->wl_shm_stride = stride; - if (self->version < 3) { + int version = zwlr_screencopy_manager_v1_get_version(self->manager); + if (version < 3) { self->have_linux_dmabuf = false; screencopy_buffer_done(data, frame); return;
