Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package SwayNotificationCenter for 
openSUSE:Factory checked in at 2026-03-25 21:19:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/SwayNotificationCenter (Old)
 and      /work/SRC/openSUSE:Factory/.SwayNotificationCenter.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "SwayNotificationCenter"

Wed Mar 25 21:19:06 2026 rev:11 rq:1342354 version:0.12.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/SwayNotificationCenter/SwayNotificationCenter.changes
    2026-02-23 16:14:25.581977678 +0100
+++ 
/work/SRC/openSUSE:Factory/.SwayNotificationCenter.new.8177/SwayNotificationCenter.changes
  2026-03-27 06:35:40.295764478 +0100
@@ -1,0 +2,15 @@
+Tue Mar 24 18:38:40 UTC 2026 - Filippo Bonazzi <[email protected]>
+
+- Update to version 0.12.6:
+  - Fixed floating notification keyboard mode being set too early
+
+-------------------------------------------------------------------
+Mon Mar 23 18:03:35 UTC 2026 - Filippo Bonazzi <[email protected]>
+
+- Update to version 0.12.5:
+  - Fixed segfault when displaying notification + new monitor is mapped
+  - Added --custom-system-css arg to swaync MAN 1 page
+  - Added --replace arg to replace the currently running swaync instance
+  - Set floating notification layer keyboard mode to ON_DEMAND after map
+
+-------------------------------------------------------------------

Old:
----
  SwayNotificationCenter-0.12.4.obscpio

New:
----
  SwayNotificationCenter-0.12.6.obscpio

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

Other differences:
------------------
++++++ SwayNotificationCenter.spec ++++++
--- /var/tmp/diff_new_pack.rAXkQe/_old  2026-03-27 06:35:42.179842131 +0100
+++ /var/tmp/diff_new_pack.rAXkQe/_new  2026-03-27 06:35:42.195842791 +0100
@@ -19,7 +19,7 @@
 %global alt_pkg_name swaync
 
 Name:           SwayNotificationCenter
-Version:        0.12.4
+Version:        0.12.6
 Release:        0
 Summary:        A simple GTK notification daemon
 License:        GPL-3.0-only

++++++ SwayNotificationCenter-0.12.4.obscpio -> 
SwayNotificationCenter-0.12.6.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SwayNotificationCenter-0.12.4/build-scripts/PKGBUILD-git 
new/SwayNotificationCenter-0.12.6/build-scripts/PKGBUILD-git
--- old/SwayNotificationCenter-0.12.4/build-scripts/PKGBUILD-git        
2026-01-25 10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/build-scripts/PKGBUILD-git        
2026-03-23 23:59:19.000000000 +0100
@@ -2,7 +2,7 @@
 # Maintainer: Erik Reider <[email protected]>
 pkgname=swaync-git
 _pkgname=swaync
-pkgver=r645.0998431
+pkgver=r677.0d9266d
 pkgrel=1
 pkgdesc="A simple notification daemon with a GTK panel for checking previous 
notifications like other DEs"
 url="https://github.com/ErikReider/SwayNotificationCenter";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SwayNotificationCenter-0.12.4/build-scripts/swaync.rpkg.spec 
new/SwayNotificationCenter-0.12.6/build-scripts/swaync.rpkg.spec
--- old/SwayNotificationCenter-0.12.4/build-scripts/swaync.rpkg.spec    
2026-01-25 10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/build-scripts/swaync.rpkg.spec    
2026-03-23 23:59:19.000000000 +0100
@@ -2,7 +2,7 @@
 %global alt_pkg_name swaync
 
 Name:       {{{ git_repo_name }}}
-Version:    0.12.4
+Version:    0.12.6
 Release:    1%{?dist}
 Summary:    Notification daemon with GTK GUI
 Provides:   desktop-notification-daemon
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SwayNotificationCenter-0.12.4/completions/bash/swaync 
new/SwayNotificationCenter-0.12.6/completions/bash/swaync
--- old/SwayNotificationCenter-0.12.4/completions/bash/swaync   2026-01-25 
10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/completions/bash/swaync   2026-03-23 
23:59:19.000000000 +0100
@@ -14,6 +14,7 @@
         --version
         --style
         --config
+        --replace
         --skip-system-css
         --custom-system-css
     )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SwayNotificationCenter-0.12.4/completions/fish/swaync.fish 
new/SwayNotificationCenter-0.12.6/completions/fish/swaync.fish
--- old/SwayNotificationCenter-0.12.4/completions/fish/swaync.fish      
2026-01-25 10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/completions/fish/swaync.fish      
2026-03-23 23:59:19.000000000 +0100
@@ -3,5 +3,6 @@
 complete -c swaync -s v -l version --description "Prints version"
 complete -c swaync -s s -l style --description "Use a custom Stylesheet file" 
-r
 complete -c swaync -s c -l config --description "Use a custom config file" -r
+complete -c swaync      -l replace --description "Replace the currently 
running instance of SwayNotificationCenter"
 complete -c swaync      -l skip-system-css --description "Skip trying to parse 
the packaged Stylesheet file. Useful for CSS debugging"
 complete -c swaync      -l custom-system-css --description "Pick a custom CSS 
file to use as the \"system\" CSS. Useful for CSS debugging" -r
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SwayNotificationCenter-0.12.4/completions/zsh/_swaync 
new/SwayNotificationCenter-0.12.6/completions/zsh/_swaync
--- old/SwayNotificationCenter-0.12.4/completions/zsh/_swaync   2026-01-25 
10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/completions/zsh/_swaync   2026-03-23 
23:59:19.000000000 +0100
@@ -5,5 +5,6 @@
     '(-v --version)'{-v,--version}'[Prints version]' \
     '(-s --style)'{-s,--style}'[Use a custom Stylesheet file]:files:_files' \
     '(-c --config)'{-c,--config}'[Use a custom config file]:files:_files' \
+    '(   --replace)'--replace'[Replace the currently running instance of 
SwayNotificationCenter]' \
     '(   --skip-system-css)'--skip-system-css'[Skip trying to parse the 
packaged Stylesheet file. Useful for CSS debugging]' \
     '(   --custom-system-css)'--custom-system-css'[Pick a custom CSS file to 
use as the "system" CSS. Useful for CSS debugging]:files:_files' \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SwayNotificationCenter-0.12.4/man/swaync.1.scd 
new/SwayNotificationCenter-0.12.6/man/swaync.1.scd
--- old/SwayNotificationCenter-0.12.4/man/swaync.1.scd  2026-01-25 
10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/man/swaync.1.scd  2026-03-23 
23:59:19.000000000 +0100
@@ -19,9 +19,15 @@
 *-s, --style* <CSS file>
        Use a custom Stylesheet file
 
+*--replace*
+       Replace the currently running instance of SwayNotificationCenter
+
 *--skip-system-css*
        Skip trying to parse the packaged Stylesheet file. Useful for CSS 
debugging
 
+*--custom-system-css*
+       Pick a custom CSS file to use as the "system" CSS. Useful for CSS 
debugging
+
 *-c, --config* <Config file>
        Use a custom config file
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SwayNotificationCenter-0.12.4/meson.build 
new/SwayNotificationCenter-0.12.6/meson.build
--- old/SwayNotificationCenter-0.12.4/meson.build       2026-01-25 
10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/meson.build       2026-03-23 
23:59:19.000000000 +0100
@@ -1,5 +1,5 @@
 project('sway-notificaton-center', ['c', 'vala'],
-  version: '0.12.4',
+  version: '0.12.6',
   meson_version: '>= 0.60.0',
   default_options: [ 'warning_level=2' ],
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SwayNotificationCenter-0.12.4/src/main.vala 
new/SwayNotificationCenter-0.12.6/src/main.vala
--- old/SwayNotificationCenter-0.12.4/src/main.vala     2026-01-25 
10:53:32.000000000 +0100
+++ new/SwayNotificationCenter-0.12.6/src/main.vala     2026-03-23 
23:59:19.000000000 +0100
@@ -42,10 +42,12 @@
 
         public signal void config_reload (ConfigModel ?old_config, ConfigModel 
new_config);
 
-        public Swaync () {
+        public Swaync (bool replace) {
             Object (
                 application_id : "org.erikreider.swaync",
                 flags: ApplicationFlags.DEFAULT_FLAGS
+                | ApplicationFlags.ALLOW_REPLACEMENT
+                | (replace ? ApplicationFlags.REPLACE : 0)
             );
 
             try {
@@ -146,6 +148,7 @@
             notifications_widget = new Widgets.Notifications ();
             control_center = new ControlCenter ();
 
+            add_window (floating_notifications);
             add_window (control_center);
 
             noti_daemon.on_dnd_toggle.connect ((dnd) => {
@@ -229,6 +232,7 @@
         }
 
         public static int main (string[] args) {
+            bool replace = false;
             if (args.length > 0) {
                 for (uint i = 1; i < args.length; i++) {
                     string arg = args[i];
@@ -247,6 +251,9 @@
                         case "--config":
                             config_path = args[++i];
                             break;
+                        case "--replace":
+                            replace = true;
+                            break;
                         case "-v":
                         case "--version":
                             stdout.printf ("%s\n", Constants.VERSION);
@@ -282,7 +289,7 @@
             Functions.init ();
             self_settings = new Settings ("org.erikreider.swaync");
 
-            app = new Swaync ();
+            app = new Swaync (replace);
             return app.run ();
         }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SwayNotificationCenter-0.12.4/src/notificationWindow/notificationWindow.vala
 
new/SwayNotificationCenter-0.12.6/src/notificationWindow/notificationWindow.vala
--- 
old/SwayNotificationCenter-0.12.4/src/notificationWindow/notificationWindow.vala
    2026-01-25 10:53:32.000000000 +0100
+++ 
new/SwayNotificationCenter-0.12.6/src/notificationWindow/notificationWindow.vala
    2026-03-23 23:59:19.000000000 +0100
@@ -42,15 +42,14 @@
                     surface.disconnect (id);
                     debug ("NotificationWindow mapped on monitor: %s",
                            Functions.monitor_to_string (monitor));
+
+                    // Only set ON_DEMAND after the surface has been mapped
+                    Idle.add_once (() => set_keyboard_mode ());
                 });
             });
             this.unmap.connect (() => {
+                set_keyboard_mode ();
                 debug ("NotificationWindow un-mapped");
-
-                // Destroy the wl_surface to get a new "enter-monitor" signal 
and
-                // fixes issues where keyboard shortcuts stop working after 
clearing
-                // all notifications.
-                ((Gtk.Widget) this).unrealize ();
             });
 
             // TODO: Make option
@@ -90,6 +89,22 @@
             base.snapshot (snapshot);
         }
 
+        /**
+         * Compositors handle the layer shell ON_DEMAND mode differently, so
+         * only set the mode while mapped to reduce the chance of the users
+         * input focus being stolen by an incoming notification.
+         */
+        private inline void set_keyboard_mode () {
+            if (app.use_layer_shell) {
+                if (app.has_layer_on_demand && get_mapped ()
+                    && !inline_reply_notifications.is_empty) {
+                    GtkLayerShell.set_keyboard_mode (this, 
GtkLayerShell.KeyboardMode.ON_DEMAND);
+                } else {
+                    GtkLayerShell.set_keyboard_mode (this, 
GtkLayerShell.KeyboardMode.NONE);
+                }
+            }
+        }
+
         private void set_anchor () {
             debug ("NotificationWindow set_anchor");
             if (app.use_layer_shell) {
@@ -266,14 +281,9 @@
 
             if (notification.has_inline_reply) {
                 inline_reply_notifications.remove (param.applied_id);
-                if (inline_reply_notifications.is_empty
-                    && app.use_layer_shell
-                    && GtkLayerShell.get_keyboard_mode (this)
-                    != GtkLayerShell.KeyboardMode.NONE) {
-                    GtkLayerShell.set_keyboard_mode (
-                        this, GtkLayerShell.KeyboardMode.NONE);
-                }
+                set_keyboard_mode ();
             }
+
             // Remove notification and its destruction timeout
             notification.remove_noti_timeout ();
             list.remove.begin (notification, transition, (obj, res) => {
@@ -291,15 +301,18 @@
                                                ConfigModel.instance.timeout,
                                                
ConfigModel.instance.timeout_low,
                                                
ConfigModel.instance.timeout_critical);
+            if (!visible) {
+                // Destroy the wl_surface to get a new "enter-monitor" signal 
and
+                // fixes issues where keyboard shortcuts stop working after 
clearing
+                // all notifications.
+                ((Gtk.Widget) this).unrealize ();
+            }
+
             if (noti.has_inline_reply) {
                 inline_reply_notifications.add (param.applied_id);
-
-                if (app.use_layer_shell &&
-                    GtkLayerShell.get_keyboard_mode (this)
-                    != GtkLayerShell.KeyboardMode.ON_DEMAND
-                    && app.has_layer_on_demand) {
-                    GtkLayerShell.set_keyboard_mode (
-                        this, GtkLayerShell.KeyboardMode.ON_DEMAND);
+                // Update the keyboard mode when already mapped
+                if (get_mapped ()) {
+                    set_keyboard_mode ();
                 }
             }
 

++++++ SwayNotificationCenter.obsinfo ++++++
--- /var/tmp/diff_new_pack.rAXkQe/_old  2026-03-27 06:35:43.591900330 +0100
+++ /var/tmp/diff_new_pack.rAXkQe/_new  2026-03-27 06:35:43.619901484 +0100
@@ -1,5 +1,5 @@
 name: SwayNotificationCenter
-version: 0.12.4
-mtime: 1769334812
-commit: 5228963a0dccbee558e153491eb067bd8a053937
+version: 0.12.6
+mtime: 1774306759
+commit: 1043ef98ec97a27e24192a726576fce807d2ee49
 

++++++ _service ++++++
--- /var/tmp/diff_new_pack.rAXkQe/_old  2026-03-27 06:35:43.739906430 +0100
+++ /var/tmp/diff_new_pack.rAXkQe/_new  2026-03-27 06:35:43.759907255 +0100
@@ -2,7 +2,7 @@
   <service name="obs_scm" mode="manual">
     <param name="scm">git</param>
     <param 
name="url">https://github.com/ErikReider/SwayNotificationCenter.git</param>
-    <param name="revision">v0.12.4</param>
+    <param name="revision">v0.12.6</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="versionrewrite-pattern">v(.*)</param>
   </service>

Reply via email to