hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.92k stars 849 forks source link

Pop-up window focus #5358

Open hhhorb opened 6 months ago

hhhorb commented 6 months ago

Sorry for the vague title, but I've searched high and low for an answer and can't find anything helpful, I was hoping someone here can answer two questions. I'm using v0.37.1, master layout mode, and I have transparency on inactive windows.

Some apps don't focus pop-up windows. Example, if in gedit or inkscape I Ctrl+Shift+s, the "Save as..." pop-up dialog window is focused, but in GIMP2, it's not, I have to use my keybind to focus the dialog window. Is there an environment variable I haven't set or something?

If I float a window, it stays on top of new windows. Is there a window rule I can set so the next opened window brings the tiled layer to the top?

Thanks for hyprland, it's really fun!

vaxerski commented 6 months ago

likely some buggy xwayland behavior?

MightyPlaza commented 5 months ago

gimp-devel supports native wayland which shouldn't have the issue

de-vri-es commented 5 months ago

One thing I noticed is: even with input.follow-mouse = 0, moving the mouse on or off a floating window still changes focus.

So what could happen: the application opens a popup window that gets floated, then you move the mouse (maybe unconsciously or unintentionally) and the focus moves back to the original window.

I even had this with password prompts from gpg-agent, which is very unpleasant :(

/edit: if this is your problem, just set input.float_switch_override_focus = 0.

musjj commented 3 months ago

I'm noticing this with VS Code popups too (e.g. save dialogs). It only happens when running on XWayland and the issue goes away with --ozone-platform=wayland.

But unfortunately Electron on Wayland also has its own set of issues on Hyprland: https://github.com/hyprwm/Hyprland/issues/1462

hhhorb commented 3 months ago

@MightyPlaza , thanks for that. I've been using Gimp-dev for a month, I though I had commented here. Guess not.

new_status = master (#6479) in v0.41.2 is helping this issue a lot for me. Transmission-gtk, and Atril are working perfectly.