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
21.65k stars 902 forks source link

Fullscreen xwayland applications break special workspace focus #2873

Open donovanglover opened 1 year ago

donovanglover commented 1 year ago

Hyprland Version

Hyprland, built from branch at commit v0.27.0 ().

Bug or Regression?

Bug

Description

When clicking on a window in a special workspace, the fullscreen xwayland window behind it gets focused instead.

How to reproduce

  1. Open a wine application such as the editor in osu!
  2. Open a special workspace
  3. Try to click on something in the special workspace

Crash reports, logs, images, videos

hyprland.conf

MightyPlaza commented 3 months ago

any updates?

donovanglover commented 3 months ago

On v0.41.2 but windows in a special workspace no longer get focused when an xwayland window is behind it.

myned commented 2 months ago

@ 118be4dea048df88fd21b84580fe62950c868c8f

In my case, this occurs when a Proton game that grabs the cursor is fullscreen in the background and the cursor moves over the game from the special workspace window. It doesn't happen with any XWayland window in fullscreen. Once I lose focus, I have to reopen the special workspace to regain it, but I can still click on that window if it already has focus.

The exact steps were:

  1. Open Steam tiled in a special workspace
  2. Open Elden Ring through Steam, fullscreen in a named workspace via rule
  3. Toggle special workspace open, cursor and focus is on the Steam window
  4. Move cursor over the game window
  5. Observe the cursor becoming grabbed by the game window a. With input:special_fallthrough=false, the special workspace also closes
  6. Move cursor over the Steam window
  7. Observe focus not returning to the Steam window a. While the game is first launching, focus switches without issue as the cursor isn't grabbed yet b. Also cannot switch focus to the special workspace with a cyclenext bind
0x57e11a commented 1 month ago

also experiencing this with proton-based games

this is causing many frustrations with a special workspace that switches into another keymap while active, as it causes it to stay in said keymap (perhaps this could be a feature request for workspace rule to switch into a specific keymap when entering as well)

0x57e11a commented 1 month ago

experiencing this with pretty much everything at this point, it seems like most things break with fullscreen, whether it be obsidian, alacritty, thunar, firefox, etc...