Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After an update to 0.25.0 lazy calls stopped working in custom popup windows #336

Closed
MagnuSiwy opened this issue Apr 23, 2024 · 4 comments · Fixed by #337
Closed

After an update to 0.25.0 lazy calls stopped working in custom popup windows #336

MagnuSiwy opened this issue Apr 23, 2024 · 4 comments · Fixed by #337

Comments

@MagnuSiwy
Copy link

MagnuSiwy commented Apr 23, 2024

For some reason after the update I can't use lazy calls in the custom popups. Neither lazy.function(), lazy.spawn() nor lazy.shutdown() are working now.

Here are the configs of both of the functions. Both popups work perfectly, just the lazy calls don't

Edit: The power menu function is basically the same as the example in the docs

@elParaguayo
Copy link
Owner

Can't recreate this. Lazy calls work fine for me.

@MagnuSiwy
Copy link
Author

I get this error every time I try to use the lazy call in a popup:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/libqtile/backend/x11/core.py", line 344, in _xpoll
    self.handle_event(event)
  File "/usr/lib/python3.11/site-packages/libqtile/backend/x11/core.py", line 311, in handle_event
    ret = target(event)
          ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/libqtile/backend/x11/window.py", line 1530, in handle_ButtonPress
    self.process_button_click(e.event_x, e.event_y, e.detail)
  File "/usr/lib/python3.11/site-packages/qtile_extras/popup/toolkit.py", line 407, in process_button_click
    control.button_press(x - control.offsetx, y - control.offsety, button)
  File "/usr/lib/python3.11/site-packages/qtile_extras/popup/toolkit.py", line 939, in button_press
    status, val = self.qtile.server.call(
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/libqtile/command/interface.py", line 411, in call
    selectors, name, args, kwargs, lifted = data
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 5, got 4)```

It's probably an issue on my end then. Also with just qitle and not qtile-extras, sorry. Do you know how can I fix it? Or should I create an issue on qtile's github?

@elParaguayo
Copy link
Owner

Ah. That's something that was recently added to qtile. That will need fixing in qtile-extras. Won't take long to do.

@elParaguayo elParaguayo reopened this Apr 25, 2024
@elParaguayo elParaguayo linked a pull request Apr 25, 2024 that will close this issue
@elParaguayo
Copy link
Owner

#337 should fix this for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants