Skip to content

[Bug]: no mouse button events #2288

@rpaciorek

Description

@rpaciorek

What happened?

In Lua event handler function:

function conky_event_handler(event)
	print(event.type)
	return false
end

I only receive events: mouse_move mouse_enter and mouse_leave. But I don't receive events: button_down, button_up nor button_scroll.

The problem also occurs on version 1.22.2. This work fine (in the same environment and with the same config) after downgrade Conky to 1.18.3 (and removed conky_ prefix from event handler function name).

Version

1.22.1 (from Debian package conky-all 1.22.1-1)

Which OS/distro are you seeing the problem on?

Debian

Conky config

conky.config = {
    alignment = 'bottom_right',
    gap_x = 0,
    gap_y = 0,
    border_width = 0,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager',
    
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_wayland = false,
    out_to_x = true,
    
    background = false,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'DejaVu Sans Mono:size=12',
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 0.5,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    lua_load = '.config/conky/conky.lua',
    lua_mouse_hook = 'event_handler',
}

Stack trace

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrelated to incorrect existing implementation of some functionalitytriageissue that hasn't been verified, categorized or acknowledged yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions