Skip to content

feature request: wayland support #39

@RiedleroD

Description

@RiedleroD

I just switched from xorg (qtile) to wayland (sway) and volctl doesn't work. That's kinda sad because I loved it in my previous configuration.

Anyway, currently the icon just doesn't show up. When the volume is changed, then a new floating window pops up with 0% volume (in the exact center of the screen) and volctl prints this to console:

(volctl:260504): Gtk-CRITICAL **: 10:07:48.702: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/volctl/app.py", line 141, in update_values
    self._create_osd()
  File "/usr/lib/python3.9/site-packages/volctl/app.py", line 94, in _create_osd
    self._osd = VolumeOverlay(self)
  File "/usr/lib/python3.9/site-packages/volctl/osd.py", line 63, in __init__
    self._make_window_clicktrough()
  File "/usr/lib/python3.9/site-packages/volctl/osd.py", line 177, in _make_window_clicktrough
    win = X.XID(self.get_window().get_xid())
AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid'

The windows stack on top of each other, have window borders and don't close automatically.

I hope it's possible to implement basic wayland support.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions