-
-
Notifications
You must be signed in to change notification settings - Fork 717
Closed
Description
Checklist
- I have read the appropriate section in the contributing guidelines
- I believe this issue is a problem with polybar itself and not a misconfiguration on my part
- I have searched for other open and closed issues that may have already reported this problem
- I have checked the known issues page for this problem.
- I have followed the debugging guide to narrow down the problem to a minimal config.
Steps to reproduce
- Start polybar with the provided minimal config
- Click on the xworkspaces module to change workspace
Minimal config
[bar/main]
modules-center = clicker double-clicker
[module/clicker]
type = internal/xworkspaces
[module/double-clicker]
type = custom/script
label = "|DBLCLICKER|"
exec = echo "a"
double-click-left = notify-send 'Double Click'
Polybar log
polybar|notice: Parsing config file: /home/zack/.config/polybar/config.ini
polybar|trace: config_parser: Parsing /home/zack/.config/polybar/config.ini
polybar|info: Loaded monitor HDMI-0 (1920x1080+0+0)
polybar|info: Configured DPI = 96x96
polybar|info: Bar geometry: 1920x24+0+0; Borders: 0,0,0,0
polybar|trace: bar: Attach X event sink
polybar|trace: bar: Attach signal receiver
polybar|trace: controller: Setup user-defined modules
polybar|info: Starting application
polybar|trace: controller: Main thread id = 1
polybar|info: Starting module/clicker
polybar|info: Starting module/double-clicker
polybar|info: Entering event loop (thread-id=1)
polybar|trace: bar: Create renderer
polybar|trace: renderer: Get TrueColor visual
polybar|trace: renderer: Allocate colormap
polybar|trace: renderer: Allocate output window
polybar|info: script_runner: Invoking shell command: "echo "a""
polybar|trace: renderer: Allocate window pixmaps
polybar|trace: renderer: Allocate graphic contexts
polybar|trace: renderer: Allocate alignment blocks
polybar|trace: renderer: Allocate cairo components
polybar|trace: renderer: Load fonts
polybar|warn: No fonts specified, using fallback font "fixed"
polybar|trace: command: Waiting for pid 3592572 to finish...
polybar|trace: command: Exited with status 0
polybar|notice: Loaded font "fixed" (name=Fixed, offset=0, file=/usr/share/fonts/X11/misc/7x13-ISO8859-1.pcf.gz)
polybar|info: Bar window: 0x6600001
polybar|trace: bar: Reconfigure window
polybar|trace: bar: Set window WM_NAME
polybar|trace: bar: Set window _NET_WM_WINDOW_TYPE
polybar|trace: bar: Set window _NET_WM_STATE
polybar|trace: bar: Set window _NET_WM_DESKTOP
polybar|trace: bar: Set window _NET_WM_PID
polybar|trace: bar: Map window
polybar|trace: bar: Draw empty bar
polybar|trace: bar: Setup tray manager
polybar|info: Disabling tray manager (reason: missing `tray-position`)
polybar|info: module/clicker: Rebuilding cache
polybar|info: module/double-clicker: Rebuilding cache
polybar|trace: bar: Force update
polybar|info: Redrawing bar window
polybar|trace: renderer: flush(2 geom=203x24+859+0, falloff=0)
polybar|trace: bar: Received expose event
polybar|info: module/clicker: Rebuilding cache
polybar|trace: bar: Ignoring update (unchanged)
polybar|info: module/clicker: Rebuilding cache
polybar|trace: bar: Ignoring update (unchanged)
polybar|trace: bar: Received button press: 1 at pos(898, 14)
polybar|trace: Found matching input area
polybar|trace: controller: Queueing input event '#clicker.focus.3'
polybar|trace: controller: Dequeueing inputdata: '#clicker.focus.3'
polybar|trace: controller: Processing inputdata: #clicker.focus.3
polybar|info: Forwarding action to modules (module: 'clicker', action: 'focus', data: '3')
polybar|info: module/clicker: Requesting change to desktop #3
polybar|info: Delivered action to 1 module
polybar|info: module/clicker: Rebuilding cache
polybar|info: Redrawing bar window
polybar|trace: renderer: flush(2 geom=203x24+859+0, falloff=0)
polybar|trace: bar: Received button press: 1 at pos(870, 12)
polybar|trace: Found matching input area
polybar|trace: controller: Queueing input event '#clicker.focus.1'
polybar|trace: controller: Dequeueing inputdata: '#clicker.focus.1'
polybar|trace: controller: Processing inputdata: #clicker.focus.1
polybar|info: Forwarding action to modules (module: 'clicker', action: 'focus', data: '1')
polybar|info: module/clicker: Requesting change to desktop #1
polybar|info: Delivered action to 1 module
polybar|info: module/clicker: Rebuilding cache
polybar|info: Redrawing bar window
polybar|trace: renderer: flush(2 geom=203x24+859+0, falloff=0)
polybar|info: module/clicker: Rebuilding cache
polybar|trace: bar: Ignoring update (unchanged)
polybar|info: script_runner: Invoking shell command: "echo "a""
polybar|trace: command: Waiting for pid 3592576 to finish...
polybar|trace: command: Exited with status 0
polybar|info: module/clicker: Rebuilding cache
polybar|trace: bar: Ignoring update (unchanged)
polybar|notice: Received signal(2): Interrupt
polybar|info: Eventloop finished
polybar|notice: Termination signal received, shutting down...
polybar|trace: controller: Detach signal receiver
polybar|trace: controller: Stop modules
polybar|info: module/clicker: Stopping
polybar|trace: module/clicker: Release sleep lock
polybar|info: Deconstruction of module/clicker took 0 ms.
polybar|trace: module/double-clicker: Release sleep lock
polybar|info: module/double-clicker: Stopping
polybar|trace: module/double-clicker: Release sleep lock
polybar|info: Deconstruction of module/double-clicker took 0 ms.
polybar|trace: module/clicker: Deconstructing
polybar|trace: module/double-clicker: Deconstructing
polybar|info: Waiting for spawned processes to end
polybar|info: Reached end of application...
Expected behavior
The module should switch workspaces (or generally trigger the click event) immediately, since it has no associated double-click handler.
Actual behavior
The module waits for the length of the double-click interval, then processes the click listener.
Window Manager and Version
i3 version 4.19.1 (2021-02-01) © 2009 Michael Stapelberg and contributors
Linux Distribution
Linux Mint 20.2 Uma
Polybar version
polybar 3.6.1
Features: +alsa +curl +i3 -mpd +network(libnl) +pulseaudio +xkeyboard
X extensions: +randr (+monitors) +composite +xkb -xrm +xcursor
Build type: Release
Compiler: /usr/bin/clang++
Compiler flags: -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Wno-error=parentheses-equality -Wno-zero-length-array
Linker flags: -Wall -Wextra -Wpedantic -Wno-error=parentheses-equality -Wno-zero-length-array -Wall -Wextra -Wpedantic -Wno-error=parentheses-equality -Wno-zero-length-array
Additional Context / Screenshots
Likely related to #338