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.72k stars 900 forks source link

DotA 2: "desktop friendly fullscreen" renders Hyprland unusable #3350

Open pshirshov opened 1 year ago

pshirshov commented 1 year ago

Hyprland Version

d126d2c09204a09b0b10ce4f999520fc901fbf0a

Bug or Regression?

Bug

Description

"Desktop friendly fullscreen" in DotA 2 makes its window to appear and disappear in an endless cycle and Hyprland session becomes unusable.

"fakefullscreen" window rule doesn't help.

Probably we might need a special window rule which would make Hyprland to ignore all the minimize/maximize/focus requests made by affected window. Or, maybe, there is a better generic fix for this issue.

How to reproduce

1) Run DotA 2 2) Once you get to the main menu, make sure that "desktop friendly fullscreen" is selected in game options and "desktop friendly fullscreen minimizes on focus loss" option is enabled 3) Switch focus to another app (the easiest way to do it would be to click on another app if you have multiple displays) 4) The game window will start appearing and disappearing in an endless cycle and it won't be possible to disrupt that cycle. Also it might be hard or in many cases impossible to switch to another window. When the game and Hyprland enter this state the only way out is the force logout hotkey.

Crash reports, logs, images, videos

No response

MightyPlaza commented 1 year ago

there already exists nofullscreenrequest and nomaximizerequest window rules see if those and any others help fix the issue https://wiki.hyprland.org/Configuring/Window-Rules/#rules