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

'C-x 4 4' doesn't work #17

Open
butter-radish opened this issue Feb 16, 2024 · 1 comment
Open

'C-x 4 4' doesn't work #17

butter-radish opened this issue Feb 16, 2024 · 1 comment

Comments

@butter-radish
Copy link

other-window-prefix (C-x 4 4) isn’t programmed to work if the next command spawns a graphical window; this is sensible as most people don’t run EXWM. I was wondering if EXWM could detect when a command run with the other-window-prefix tries opening a graphical window, and spawns it in the other-window?

browse-url-firefox, which comes with Emacs, is one example of a command that always spawns graphical windows but isn’t designed to work with the other-window-prefix.

@Stebalien
Copy link
Contributor

The right way to handle this is with startup notifications (https://www.freedesktop.org/wiki/Software/startup-notification/, https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#key-startupnotify, ch11ng/exwm#245).

As far as I can tell, one needs to:

  1. Set DESKTOP_STARTUP_ID before invoking a command.
  2. When a new window is mapped, use the startup notification protocol to figure out how it was launched.

But none of this is particularly easy.

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

No branches or pull requests

2 participants