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

I want to make the window active using hotkey when it's already open #657

Open
poglazov opened this issue Feb 17, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@poglazov
Copy link

Environment

  • OS: Ubuntu 22.04.3 LTS
  • Desktop environment: GNOME 42.9
  • Crow Translate version: 2.11.0
  • Windowing System: Wayland

Describe the problem or limitation you are having
I successfully setup hotkeys using D-Bus API. But when I use the hotkey executing dbus-send --type=method_call --dest=io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow io.crow_translate.CrowTranslate.MainWindow.open, and Crow Translate's window is already opened but in the background, it remains in the background and doesn't become active.

Describe the solution you'd like
Could you make open() function not only open the window, but also make it active when it's already open()?
Or maybe some workaround like:

  • a separate D-Bus function for window activation,
  • a separate D-Bus function for closing the window. Because I'll be able to close the window and open it again, and the open() function will open it as active.

Or maybe there is some CLI command that makes the window active that I don't know about?

@poglazov poglazov added the enhancement New feature or request label Feb 17, 2024
@Shatur
Copy link
Member

Shatur commented Feb 17, 2024

It's a Wayland limitation, I can't bring a window into foreground via CLI command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants