Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kanshi for openSUSE:Factory checked 
in at 2024-03-05 18:50:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kanshi (Old)
 and      /work/SRC/openSUSE:Factory/.kanshi.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kanshi"

Tue Mar  5 18:50:46 2024 rev:4 rq:1154978 version:1.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/kanshi/kanshi.changes    2024-01-17 
22:19:05.819367207 +0100
+++ /work/SRC/openSUSE:Factory/.kanshi.new.1770/kanshi.changes  2024-03-05 
18:50:50.201423660 +0100
@@ -1,0 +2,6 @@
+Mon Feb 26 04:17:18 UTC 2024 - Soc Virnyl Estela 
<[email protected]>
+
+- Update to v1.5.1:
+  * Forget current profile on match_and_apply failure
+
+-------------------------------------------------------------------

Old:
----
  kanshi-1.5.0.tar.gz

New:
----
  kanshi-1.5.1.tar.gz

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

Other differences:
------------------
++++++ kanshi.spec ++++++
--- /var/tmp/diff_new_pack.UCWeAW/_old  2024-03-05 18:50:52.913522132 +0100
+++ /var/tmp/diff_new_pack.UCWeAW/_new  2024-03-05 18:50:52.929522713 +0100
@@ -17,13 +17,13 @@
 
 
 Name:           kanshi
-Version:        1.5.0
+Version:        1.5.1
 Release:        0
 Summary:        Dynamic display configuration
 License:        MIT
 Group:          System/GUI/Other
 URL:            https://git.sr.ht/~emersion/kanshi
-Source:         %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source0:        
https://git.sr.ht/~emersion/kanshi/refs/download/v%{version}/%{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  meson
 BuildRequires:  ninja
@@ -35,7 +35,7 @@
 and disabled on hotplug.
 
 %prep
-%setup -q -n kanshi-v%{version}
+%autosetup -p1
 
 %build
 # Disabled because libvarlink is not available in Factory

++++++ kanshi-1.5.0.tar.gz -> kanshi-1.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kanshi-v1.5.0/main.c new/kanshi-1.5.1/main.c
--- old/kanshi-v1.5.0/main.c    2023-12-27 15:39:09.000000000 +0100
+++ new/kanshi-1.5.1/main.c     2024-02-01 18:35:26.000000000 +0100
@@ -539,9 +539,20 @@
        }
        struct kanshi_profile *profile = match(state, matches);
        if (profile != NULL) {
-               return apply_profile(state, profile, matches, callback, data);
+               if (apply_profile(state, profile, matches, callback, data)) {
+                       return true;
+               }
+       } else {
+               fprintf(stderr, "no profile matched\n");
        }
-       fprintf(stderr, "no profile matched\n");
+
+       // If a profile failed to match or apply, forget the current profile.
+       // This is necessary to make the following scenario work as expected:
+       // have a profile for DP-1 and DP-2, disconnect DP-2, reconnect DP-2.
+       // No profile will be matched in the intermediary state where only DP-1 
is
+       // connected, however the profile needs to be re-applied for the final
+       // state.
+       state->current_profile = NULL;
        return false;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kanshi-v1.5.0/meson.build 
new/kanshi-1.5.1/meson.build
--- old/kanshi-v1.5.0/meson.build       2023-12-27 15:39:09.000000000 +0100
+++ new/kanshi-1.5.1/meson.build        2024-02-01 18:35:26.000000000 +0100
@@ -1,7 +1,7 @@
 project(
        'kanshi',
        'c',
-       version: '1.5.0',
+       version: '1.5.1',
        license: 'MIT',
        meson_version: '>=0.59.0',
        default_options: [

Reply via email to