hyprwm / Hyprland

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

windowrule doesn't apply to wps #6081

Open Akira-uestc opened 1 month ago

Akira-uestc commented 1 month ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch main at commit 94c20a186372aace78b188842848b873eb3ebbd7 (primary-selection: move to hyprland impl). Date: Wed May 15 06:13:35 2024 Tag: v0.40.0-87-g94c20a18, commits: 4693 flags: (if any) System Information: System name: Linux Node name: Akira Release: 6.8.9-zen1-2-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Tue, 07 May 2024 22:06:02 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 03) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Bug or Regression?

Regression

Description

When upgrade to newest commit, some windowrules that worked before failed.

My window rule: windowrulev2 = tile,class:^(wps|et|wpp|pdf)$,title:^(WPS Writer|WPS Spreadsheets|WPS Presentation|WPS PDF)$

Now the window does not tile but shows in the corner of the screen: C3CB74B88413E782A76374ABA92544EB

hyprctl client: Window 602e1adc5660 -> WPS PDF: mapped: 1 hidden: 0 at: 960,540 size: 1536,864 workspace: 2 (2) floating: 1 monitor: 0 class: title: WPS PDF initialClass: pdf initialTitle: WPS PDF pid: 4802 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 2

How to reproduce

Add windowrule in hyprland.conf

Crash reports, logs, images, videos

No response

khaneliman commented 1 month ago

I've noticed missing 'class' on xwayland applications since new implementations (steam). So, some of my window rules stopped working. Ive gotten numerous crashes too, so i'm assuming transition pains with ironing out implementation.

vaxerski commented 1 month ago

if crash, post crash report

khaneliman commented 1 month ago

if crash, post crash report

unfortunately they were all empty.. :S Yesterdays crashes all at least had the crash report header information but no trace logs. Today it was an actual empty file.

Akira-uestc commented 1 month ago

if crash, post crash report

unfortunately they were all empty.. :S Yesterdays crashes all at least had the crash report header information but no trace logs. Today it was an actual empty file.

Empty file +1 I installed hyprland-git through archlinuxcn repo(94c20a1) before and saw empty crash file Now(3189002) hyprland doesn't crash but the windowrule still cannot work

khaneliman commented 1 month ago

if crash, post crash report

unfortunately they were all empty.. :S Yesterdays crashes all at least had the crash report header information but no trace logs. Today it was an actual empty file.

Empty file +1 I installed hyprland-git through archlinuxcn repo(94c20a1) before and saw empty crash file Now(3189002) hyprland doesn't crash but the windowrule still cannot work

That's interesting... that commit is what caused my latest crash with empty file lol

vaxerski commented 1 month ago

https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-debug-stacktrace then

Akira-uestc commented 1 month ago

https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-debug-stacktrace then

log.txt

Akira-uestc commented 1 month ago

https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-debug-stacktrace then de9798f now has crash report when using xwayland window hyprlandCrashReport1169.txt