Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Pop-up window focus

Open hhhorb opened this issue 10 months ago • 5 comments

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!

hhhorb avatar Mar 31 '24 18:03 hhhorb

likely some buggy xwayland behavior?

vaxerski avatar Mar 31 '24 20:03 vaxerski

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

MightyPlaza avatar Apr 13 '24 21:04 MightyPlaza

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.

de-vri-es avatar Apr 22 '24 07:04 de-vri-es

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

musjj avatar Jun 25 '24 10:06 musjj

@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.

hhhorb avatar Jul 01 '24 00:07 hhhorb