Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package wlr-randr for openSUSE:Factory 
checked in at 2024-01-17 22:18:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wlr-randr (Old)
 and      /work/SRC/openSUSE:Factory/.wlr-randr.new.16006 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wlr-randr"

Wed Jan 17 22:18:14 2024 rev:4 rq:1139437 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/wlr-randr/wlr-randr.changes      2023-07-18 
22:07:31.046785420 +0200
+++ /work/SRC/openSUSE:Factory/.wlr-randr.new.16006/wlr-randr.changes   
2024-01-17 22:19:04.051302240 +0100
@@ -1,0 +2,9 @@
+Wed Jan 17 11:35:11 UTC 2024 - Denys Kondratenko <std...@opensuse.org>
+
+- wlr-randr v0.3.1
+  * Destroy head and mode objects before disconnect
+  * Stop assuming serial is non-zero
+  * Check for wl_display_roundtrip error
+  * build: bump to v0.3.1 
+
+-------------------------------------------------------------------

Old:
----
  wlr-randr-0.3.0.tar.gz

New:
----
  wlr-randr-0.3.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ wlr-randr.spec ++++++
--- /var/tmp/diff_new_pack.gI5nfT/_old  2024-01-17 22:19:04.679325317 +0100
+++ /var/tmp/diff_new_pack.gI5nfT/_new  2024-01-17 22:19:04.679325317 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package wlr-randr
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
 
 
 Name:           wlr-randr
-Version:        0.3.0
+Version:        0.3.1
 Release:        0
 Summary:        Utility to manage outputs of a Wayland compositor
 License:        MIT
 Group:          Productivity/Graphics/Other
 URL:            https://git.sr.ht/~emersion/wlr-randr
-Source:         
https://git.sr.ht/~emersion/wlr-randr/refs/download/v0.3.0/wlr-randr-%{version}.tar.gz
+Source:         
https://git.sr.ht/~emersion/wlr-randr/refs/download/v0.3.1/wlr-randr-%{version}.tar.gz
 BuildRequires:  meson >= 0.47.0
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(wayland-client)

++++++ wlr-randr-0.3.0.tar.gz -> wlr-randr-0.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wlr-randr-0.3.0/main.c new/wlr-randr-0.3.1/main.c
--- old/wlr-randr-0.3.0/main.c  2023-01-24 19:26:57.000000000 +0100
+++ new/wlr-randr-0.3.1/main.c  2023-10-11 09:29:43.000000000 +0200
@@ -50,6 +50,7 @@
 
        struct wl_list heads;
        uint32_t serial;
+       bool has_serial;
        bool running;
        bool failed;
 };
@@ -395,6 +396,7 @@
                struct zwlr_output_manager_v1 *manager, uint32_t serial) {
        struct randr_state *state = data;
        state->serial = serial;
+       state->has_serial = true;
 }
 
 static void output_manager_handle_finished(void *data,
@@ -684,8 +686,11 @@
 
        struct wl_registry *registry = wl_display_get_registry(display);
        wl_registry_add_listener(registry, &registry_listener, &state);
-       wl_display_dispatch(display);
-       wl_display_roundtrip(display);
+
+       if (wl_display_roundtrip(display) < 0) {
+               fprintf(stderr, "wl_display_roundtrip failed\n");
+               return EXIT_FAILURE;
+       }
 
        if (state.output_manager == NULL) {
                fprintf(stderr, "compositor doesn't support "
@@ -693,7 +698,7 @@
                return EXIT_FAILURE;
        }
 
-       while (state.serial == 0) {
+       while (!state.has_serial) {
                if (wl_display_dispatch(display) < 0) {
                        fprintf(stderr, "wl_display_dispatch failed\n");
                        return EXIT_FAILURE;
@@ -754,7 +759,21 @@
                // This space intentionally left blank
        }
 
-       // TODO: destroy heads
+       struct randr_head *head, *tmp_head;
+       wl_list_for_each_safe(head, tmp_head, &state.heads, link) {
+               struct randr_mode *mode, *tmp_mode;
+               wl_list_for_each_safe(mode, tmp_mode, &head->modes, link) {
+                       zwlr_output_mode_v1_destroy(mode->wlr_mode);
+                       free(mode);
+               }
+               zwlr_output_head_v1_destroy(head->wlr_head);
+               free(head->name);
+               free(head->description);
+               free(head->make);
+               free(head->model);
+               free(head->serial_number);
+               free(head);
+       }
        zwlr_output_manager_v1_destroy(state.output_manager);
        wl_registry_destroy(registry);
        wl_display_disconnect(display);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wlr-randr-0.3.0/meson.build 
new/wlr-randr-0.3.1/meson.build
--- old/wlr-randr-0.3.0/meson.build     2023-01-24 19:26:57.000000000 +0100
+++ new/wlr-randr-0.3.1/meson.build     2023-10-11 09:29:43.000000000 +0200
@@ -1,7 +1,7 @@
 project(
        'wlr-randr',
        'c',
-       version : '0.3.0',
+       version : '0.3.1',
        license : 'MIT',
        meson_version : '>=0.47.0',
        default_options : ['c_std=c99', 'warning_level=3', 'werror=true']

Reply via email to