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

[Bug]: Wayland: Sometimes the hotkey for skipping a break does not work #1503

Open
5 tasks done
sakralbar opened this issue Oct 31, 2024 · 5 comments
Open
5 tasks done

Comments

@sakralbar
Copy link

Version

  • I'm using version 1.16

Known issues

  • I've checked Known issues

Existing issues

  • I've checked Existing issues

Advanced Preferences

  • I've checked Advanced Preferences

What operating system are you using?

Linux

Operating System Version

ubuntu 24.04.1

Reproduction steps

  1. Install Stretchly via snap
  2. Start a break
  3. Cancel the break by pressing Ctrl + x
    Reproduces how often:
    In about 25% of cases.

Expected Behavior

The break is canceled by pressing ctrl+x

Actual Behavior

In about 25% of cases, the break is not canceled.

Relevant log output

No response

Preferences

No response

Additional information

Ubuntu works with wayland, if that's important.
The selected keyboard layout does not affect the appearance of the problem.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hovancik
Copy link
Owner

Hi, is the text "Postpone break" visible on break when this happens? Only then the shortcut is active. It might also take a second or two for the shortcut to become active when break starts

@sakralbar
Copy link
Author

sakralbar commented Oct 31, 2024

Yes, this text is visible and active. I can postpone the break by clicking on the label.

Now I have found that immediately after the start of the system, delaying the break by ctrl+x does not work in 100% of cases. But if you run Cursor (AI Code Editor, app image), then the break is postponed each time by ctrl+x.

The same thing happens in the case of running VS Code (deb package) or Google chrome.
An important clarification is that these programs must be in the form of active windows. If they are minimized to the panel, then delaying breaks by ctrl+x also does not work.

The behavior is the same on both snap and deb versions of Stretchy.

@hovancik
Copy link
Owner

hovancik commented Nov 1, 2024

That is weird, will try reproducing when on Linux.

Can you also try setting another shortcut? https://github.com/hovancik/stretchly?tab=readme-ov-file#advanced-preferences and https://github.com/hovancik/stretchly?tab=readme-ov-file#postponefinish-break-shortcut

@sakralbar
Copy link
Author

sakralbar commented Nov 2, 2024

I checked the postponement of breaks with the xorg session - it works. The problem only occurs with the wayland session.

When changing "endBreakShortcut" to "Super+X", the problem also persists - this combination only works with the active windows of the applications listed above.

Maybe it's a similar problem with wayland and hotkeys - warpdotdev/Warp#4800

@hovancik
Copy link
Owner

hovancik commented Nov 2, 2024

It is the issue with electron: electron/electron#42573

@hovancik hovancik changed the title [Bug]: Sometimes the hotkey for skipping a break does not work [Bug]: Wayland: Sometimes the hotkey for skipping a break does not work Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants