Skip to content

[Bug] swaync-client --close-all leaves a ghost box that blocks mouse clicks #509

Open
@javiertury

Description

Please read through the README and the Man pages before submitting
Please also make sure that there isn't any prior issue describing this bug

Describe the bug
swaync-client --close-all leaves a ghost box that blocks mouse clicks

To Reproduce
Steps to reproduce the behavior:

  1. Run swaync with a GTK inspector using GTK_DEBUG=interactive /usr/bin/swaync
  2. Create a notification with notify-send example
  3. Run swaync-client --close-all
  4. Try to click on the area where the (top) notification was, but there is something blocking the mouse clicks. Use the GTK inspector to check that there is a ghost box there.

Expected behavior
I would expect swaync-client --close-all not to leave ghost boxes

Please provide logs if you're experiencing notification errors / bugs
Attach Gists for swaync logs by running G_MESSAGES_DEBUG=all swaync and (if applicable) application logs.

Log
$ G_MESSAGES_DEBUG=all /usr/bin/swaync
(swaync:355724): GLib-GIO-DEBUG: 17:07:49.107: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(swaync:355724): GLib-GIO-DEBUG: 17:07:49.107: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/peripherals/mouse/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
(swaync:355724): dconf-DEBUG: 17:07:49.108: watch_fast: "/org/gnome/desktop/a11y/interface/" (establishing: 0, active: 0)
(swaync:355724): GLib-GIO-DEBUG: 17:07:49.109: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(swaync:355724): dconf-DEBUG: 17:07:49.111: watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.112: watch_established: "/org/gnome/desktop/peripherals/mouse/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.112: watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.113: watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.113: watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.113: watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.113: watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
(swaync:355724): dconf-DEBUG: 17:07:49.113: watch_established: "/org/gnome/desktop/a11y/interface/" (establishing: 1)
(swaync:355724): Gdk-DEBUG: 17:07:49.144: Compositor prefers decoration mode 'server'
(swaync:355724): GLib-DEBUG: 17:07:49.144: unsetenv() is not thread-safe and should not be used after threads are created
(swaync:355724): GLib-GIO-DEBUG: 17:07:49.154: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
(swaync:355724): dconf-DEBUG: 17:07:49.185: watch_fast: "/org/erikreider/swaync/" (establishing: 0, active: 0)
** INFO: 17:07:49.185: functions.vala:180: Looking for config file in these directories:
	- /home/<user>/.config/swaync/config.json
	- /etc/xdg/swaync/config.json
	- /usr/local/etc/xdg/swaync/config.json
** INFO: 17:07:49.185: functions.vala:180: Looking for config file in these directories:
	- /home/<user>/.config/swaync/config.json
	- /home/<user>/.config/swaync/config.json
	- /etc/xdg/swaync/config.json
	- /usr/local/etc/xdg/swaync/config.json
** Message: 17:07:49.185: configModel.vala:289: Loading Config: "/home/<user>/.config/swaync/config.json"
** (swaync:355724): DEBUG: 17:07:49.185: configModel.vala:314: {
  "positionX" : "right",
  "positionY" : "top",
  "layer" : "overlay",
  "layer-shell" : true,
  "cssPriority" : "application",
  "timeout" : 0,
  "timeout-low" : 30,
  "timeout-critical" : 0,
  "transition-time" : 200,
  "keyboard-shortcuts" : true,
  "image-visibility" : "when-available",
  "notification-window-width" : 500,
  "hide-on-clear" : false,
  "hide-on-action" : true,
  "control-center-positionX" : "none",
  "control-center-positionY" : "none",
  "control-center-margin-top" : 0,
  "control-center-margin-bottom" : 0,
  "control-center-margin-left" : 0,
  "control-center-margin-right" : 0,
  "control-center-layer" : "top",
  "control-center-exclusive-zone" : true,
  "categories-settings" : {  },
  "notification-visibility" : {  },
  "scripts" : {  },
  "script-fail-notify" : true,
  "fit-to-screen" : true,
  "relative-timestamps" : true,
  "control-center-height" : 600,
  "control-center-width" : 500,
  "notification-2fa-action" : true,
  "notification-inline-replies" : false,
  "notification-icon-size" : 64,
  "notification-body-image-height" : 100,
  "notification-body-image-width" : 200,
  "widgets" : [
    "inhibitors",
    "title",
    "dnd",
    "notifications"
  ],
  "widget-config" : {
    "inhibitors" : {
      "text" : "Inhibitors",
      "button-text" : "Clear All",
      "clear-all-button" : true
    },
    "title" : {
      "text" : "Notifications",
      "clear-all-button" : true,
      "button-text" : "Clear All"
    },
    "dnd" : {
      "text" : "Do Not Disturb"
    },
    "label" : {
      "max-lines" : 5,
      "text" : "Label Text"
    },
    "mpris" : {
      "image-size" : 96,
      "image-radius" : 12
    },
    "buttons-grid" : {
      "actions" : [
        {
          "label" : "直",
          "type" : "toggle",
          "active" : true,
          "command" : "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'",
          "update_command" : "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'"
        }
      ]
    }
  }
}
** INFO: 17:07:49.185: functions.vala:138: Looking for CSS file in these directories:
	- /etc/xdg/swaync/style.css
	- /usr/local/etc/xdg/swaync/style.css
** Message: 17:07:49.185: functions.vala:86: Loading CSS: "/etc/xdg/swaync/style.css"
(swaync:355724): dconf-DEBUG: 17:07:49.185: watch_established: "/org/erikreider/swaync/" (establishing: 1)
** INFO: 17:07:49.189: functions.vala:138: Looking for CSS file in these directories:
	- /home/<user>/.config/swaync/style.css
	- /etc/xdg/swaync/style.css
	- /usr/local/etc/xdg/swaync/style.css
** Message: 17:07:49.189: functions.vala:100: Loading CSS: "/etc/xdg/swaync/style.css"
** Message: 17:07:49.202: factory.vala:44: Loading widget: inhibitors
** Message: 17:07:49.202: factory.vala:44: Loading widget: title
** Message: 17:07:49.202: factory.vala:44: Loading widget: dnd
** (swaync:355724): DEBUG: 17:07:59.119: notiDaemon.vala:171: Notification: 
category:		(null)
image_data:		false
expire_timeout:		-1
replaces_id:		0
desktop_entry:		(null)
body:			
app_icon:		
action_icons:		false
time:			1739117279
hints:		
	sender-pid: int64 355774
	urgency: byte 0x01
applied_id:		1
image_path:		(null)
inline-reply:		(null)
app_name:		notify-send
summary:		example
icon_data:		false
resident:		false
default_action:		(null)
actions:		
urgency:		Normal

Screenshots
The blue overlay is the ghost box that GTK inspector selects

Image

Image

Image

Desktop (please complete the following information):

  • OS: Fedora 41
  • Version SwayNotificationCenter-0.10.1-1.fc41.x86_64

Additional context

swaync-client --close-latest works fine

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions