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

Artifacts when shrinking windows of Electron apps #7909

Closed Isoheptane closed 1 month ago

Isoheptane commented 1 month ago

Already reported ? *

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 0f594732b063a90d44df8c5d402d658f27471dfe (props: bump version to 0.43.0). Date: Sun Sep 8 16:48:21 2024 Tag: v0.43.0, commits: 5196 flags: (if any) System Information: System name: Linux Node name: cascade-ws Release: 6.10.7-zen1-1-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 29 Aug 2024 16:48:33 +0000 GPU information: 26:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106 [GeForce RTX 2060 SUPER] [10de:1f06] (rev a1) (prog-if 00 [VGA controller]) NVRM version: NVIDIA UNIX x86_64 Kernel Module 560.35.03 Fri Aug 16 21:39:15 UTC 2024 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: ======Config-Start====== Config File: /home/cascade/.config/hypr/hyprland.conf: Read Succeeded # See https://wiki.hyprland.org/Configuring/Monitors/ monitor = DP-1, 2560x1080@200, 0x0, 1.0 monitor = Unknown-1, 1920x1200@120, -1920x0, 1.0 # monitor = , preferred, auto, 1.0 xwayland { force_zero_scaling = true } # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Some default env vars. env = XCURSOR_SIZE,32 # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = kb_model = follow_mouse = 1 touchpad { natural_scroll = yes } tablet { region_position = 416 0 region_size = 1728 1080 } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. accel_profile = flat } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 4 gaps_out = 8 border_size = 1 col.active_border = rgba(d3e4c9ff) col.inactive_border = rgba(2222227f) allow_tearing = true layout = dwindle } env = WLR_DRM_NO_ATOMIC,1 windowrulev2 = immediate, class:^(cs2)$ decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 20 drop_shadow = true col.shadow = rgba(0000005f) col.shadow_inactive = rgba(0000003f) shadow_range = 25 blur { enabled = true size = 2 passes = 2 contrast = 1.2 } } animations { enabled = true # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windowsMove, 1, 7, myBezier animation = windowsIn, 1, 3, default, popin 90% animation = windowsOut, 1, 2, default, popin 95% animation = border, 1, 3, default animation = fade, 1, 3, default animation = workspaces, 1, 5, default } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = true # you probably want this split_width_multiplier = 1.4 } misc { #force_hypr_chan = true mouse_move_enables_dpms = true key_press_enables_dpms = true } # Layer Rules layerrule = blur, waybar layerrule = ignorezero, waybar layerrule = blur, notifications layerrule = ignorezero, notifications layerrule = blur, launcher layerrule = ignorezero, launcher # Window Rules windowrulev2 = float,class:(QQ) # QQ Popups windowrulev2 = float,title:(Volume Control) # Volume Control windowrulev2 = float,class:(steam) # Steam Popups windowrulev2 = float,title:(Qt5 Configuration Tool) # Qt5 windowrulev2 = float,title:(Qt6 Configuration Tool) # Qt6 windowrulev2 = float,title:(Fcitx Configuration) # Fcitx Config windowrulev2 = float,class:(org.gnome.Nautilus) # Nautilus Popups windowrulev2 = float,class:(firefox),title:(Library) # Firefox Popups windowrulev2 = float,class:(vlc) # VLC Popups windowrulev2 = float,class:(qemu.*) # QEMU windowrulev2 = float,class:(org.telegram.desktop),title:(Media viewer) # pinned window windowrulev2 = bordercolor rgb(598da8) rgb(598da8), pinned:1 # Variables $proxy_socks5 = socks5://localhost:1080 $proxy_http = http://localhost:1081 # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Function Key bindings bind = ,xf86audiomute, exec, pactl -- set-sink-mute @DEFAULT_SINK@ toggle bind = ,xf86audiolowervolume, exec, pactl -- set-sink-volume @DEFAULT_SINK@ -5% bind = ,xf86audioraisevolume, exec, pactl -- set-sink-volume @DEFAULT_SINK@ +5% bind = ,xf86audiomicmute, exec, pactl -- set-source-mute @DEFAULT_SOURCE@ toggle bind = ,xf86monbrightnessdown, exec, blight -d backlight/amdgpu_bl1 set -25.5 bind = ,xf86monbrightnessup, exec, blight -d backlight/amdgpu_bl1 set +25.5 # Hyprland hotkeys bind = $mainMod, C, killactive, bind = $mainMod, T, exec, alacritty bind = $mainMod, M, exit, bind = $mainMod, E, exec, [float] nautilus --new-window bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, tofi-drun | xargs hyprctl dispatch exec -- ALL_PROXY=$proxy bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, F, fullscreen bind = $mainMod, U, bringactivetotop bind = $mainMod, O, exec, dpms, on bind = $mainMod, Z, pin # Hyprland some reload exec-once bind = $mainMod CTRL ALT, R, exec, killall waybar; waybar bind = $mainMod CTRL ALT, R, exec, killall fcixt5; fcitx5 # Screenshot bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy bind = $mainMod SHIFT, W, exec, grim -g "$(hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"')" - | wl-copy bind = ,print , exec, grim - | wl-copy # OBS bind = $mainMod, HOME, exec, obs-cli recording start --host 127.0.0.1 --port 50000 bind = $mainMod, END, exec, obs-cli recording stop --host 127.0.0.1 --port 50000 # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d $switch_script = ~/.config/hypr/switch_workspace.sh # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, exec, $switch_script switch 1 bind = $mainMod, 2, exec, $switch_script switch 2 bind = $mainMod, 3, exec, $switch_script switch 3 bind = $mainMod, 4, exec, $switch_script switch 4 bind = $mainMod, 5, exec, $switch_script switch 5 bind = $mainMod, 6, exec, $switch_script switch 6 bind = $mainMod, 7, exec, $switch_script switch 7 bind = $mainMod, 8, exec, $switch_script switch 8 bind = $mainMod, 9, exec, $switch_script switch 9 bind = $mainMod, 0, exec, $switch_script switch 10 bind = $mainMod, X, togglespecialworkspace # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, exec, $switch_script move 1 bind = $mainMod SHIFT, 2, exec, $switch_script move 2 bind = $mainMod SHIFT, 3, exec, $switch_script move 3 bind = $mainMod SHIFT, 4, exec, $switch_script move 4 bind = $mainMod SHIFT, 5, exec, $switch_script move 5 bind = $mainMod SHIFT, 6, exec, $switch_script move 6 bind = $mainMod SHIFT, 7, exec, $switch_script move 7 bind = $mainMod SHIFT, 8, exec, $switch_script move 8 bind = $mainMod SHIFT, 9, exec, $switch_script move 9 bind = $mainMod SHIFT, 0, exec, $switch_script move 10 bind = $mainMod SHIFT, X, movetoworkspace, special bind = $mainMod SHIFT, comma, movecurrentworkspacetomonitor, l bind = $mainMod SHIFT, period, movecurrentworkspacetomonitor, r # Bind workspace workspace = r[1-10], monitor:0 workspace = r[11-20], monitor:1 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # Input Methods env = XMODIFIERS, @im=fcitx # This line is removed since it causes GTK applications crash (if without Wayland support) # env = GTK_IM_MODULE, wayland # env = QT_IM_MODULE, wayland env = SDL_IM_MODULE, fcitx # SDL wayland # This is deprecated since many clients does not support wayland # env = SDL_VIDEODRIVER, "wayland,x11" # NVIDIA Fix env = LIBVA_DRIVER_NAME, nvidia env = XDG_SESSION_TYPE, wayland env = GBM_BACKEND, nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME, nvidia env = WLR_NO_HARDWARE_CURSORS, 1 # Other Environment env = QT_QPA_PLATFORMTHEME, qt5ct # Proxy env = ALL_PROXY, $proxy_socks5 env = HTTP_PROXY, $proxy_http env = HTTPS_PROXY, $proxy_http env = all_proxy, $proxy_socks5 env = http_proxy, $proxy_http env = https_proxy, $proxy_http env = NO_PROXY, 127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Auto start exec-once = hyprpaper exec-once = waybar exec-once = fcitx5 # exec-once = swayidle timeout 300 'hyprctl dispatcher dpms off' exec-once = dbus-update-activation-environment --systemd --all # Agent exec-once = /usr/lib/polkit-kde-authentication-agent-1 ======Config-End======== ```

Description

Window content scretches abnormally when shrinking window size (either in x or y axis).

It seems that this only happens with electron apps running natively on wayland (Hyprland). This won't appear with XWayland. Electron native wayland support was enabled by --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime options.

I also tried to reproduce it on Sway and it doesn't seem to have such artifacts.

How to reproduce

Crash reports, logs, images, videos

https://github.com/user-attachments/assets/97006258-1f28-4ed7-8a75-fe3c0f73f520

vaxerski commented 1 month ago

https://github.com/hyprwm/Hyprland/issues/1462