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
18.48k stars 769 forks source link

some xwayland floating window can't auto focus when it opened #3748

Open DreamMaoMao opened 8 months ago

DreamMaoMao commented 8 months ago

Hyprland Version

Hyprland, built from branch main at commit 200cccdd3bbb3e093164d6cce61eedfe527f74da dirty (events: set reported size on the end of mapping). Tag: v0.31.0-79-g200cccdd flags: (if any) debug

Bug or Regression?

Bug

Description

for example: when open the playlist of smplayer:

https://github.com/hyprwm/Hyprland/assets/30348075/08c13f9b-db1b-4ce8-bc9e-d1508cae9a67

there is no this problem in dwl.

i fix this problem by making a plugin now,but this is not a good way.

image

image

when floating window is WLR_ICCCM_INPUT_MODEL_LOCAL or WLR_ICCCM_INPUT_MODEL_GLOBAL, it need to be focused.

input model of smplayer playlist is WLR_ICCCM_INPUT_MODEL_LOCAL, is should be focused

How to reproduce

1.open playlist of smplayer

Crash reports, logs, images, videos

No response

DreamMaoMao commented 8 months ago

Also my fcitx4 is not working after updating to the latest source code, its panel should not be focused, but it is focused, which makes it not work properly.

input mode of fcitx4 is WLR_ICCCM_INPUT_MODEL_PASSIVE , it should not be focused

vaxerski commented 8 months ago

fcitx... 4??? fcitx4 is dead? use fcitx5

DreamMaoMao commented 8 months ago

fcitx5 has some unresolved bugs in some of the applications I use, although fcitx4 is older, but it does work for me,

But…, this is not what I want to express, I want to say that hyprland seems to lack the judgment of the input model of xwayland windows, this I have seen on sway and dwl have similar judgments. But did not find it from the source code of hyrpland. This makes hyprland’s focus strategy on some floating xwayland windows not very accurate

vaxerski commented 8 months ago

that is true, hyprland ignores that hint completely.

musjj commented 3 months ago

Still happening to me. Thankfully there's a wayland replacement/port for most of the software I'm using.