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

Visual bugs when using resizeactive and closing a window #7441

Open Dyyynamic opened 3 months ago

Dyyynamic commented 3 months ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259 (props: bump version to 0.42.0). Date: Wed Aug 7 19:17:10 2024 Tag: v0.42.0, commits: 5069 flags: (if any) System Information: System name: Linux Node name: archlinux Release: 6.10.5-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 15 Aug 2024 00:25:30 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne [1002:164c] (rev c1) (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: ======Config-Start====== Config File: /home/dynamic/.config/hypr/hyprland.conf: Read Succeeded # MONITORS monitor=,preferred,auto,1 # MY PROGRAMS $terminal = kitty $fileManager = dolphin $menu = wofi --show drun -a $browser = firefox # AUTOSTART exec-once = hyprpaper & waybar # ENVIRONMENT VARIABLES env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 # LOOK AND FEEL general { gaps_in = 5 gaps_out = 20 border_size = 3 col.active_border = rgba(b4befeee) col.inactive_border = rgba(595959aa) resize_on_border = true allow_tearing = false layout = dwindle } decoration { rounding = 10 active_opacity = 1.0 inactive_opacity = 1.0 drop_shadow = false shadow_range = 20 shadow_render_power = 3 col.shadow = rgba(1a1a1a20) blur { enabled = true size = 5 passes = 3 vibrancy = 0.1696 } } animations { enabled = true bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } dwindle { pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = true # You probably want this } master { new_status = master } misc { force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :( } # INPUT input { kb_layout = se kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 sensitivity = 0 # -1.0 - 1.0, 0 means no modification. touchpad { natural_scroll = true } } gestures { workspace_swipe = true } # KEYBINDINGS $mainMod = SUPER bind = $mainMod, T, exec, $terminal bind = $mainMod, Q, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, B, exec, $browser bind = $mainMod, L, exec, hyprlock # 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 # Swap windows with mainMod + SHIFT + arrow keys bind = $mainMod SHIFT, left, movewindow, l bind = $mainMod SHIFT, right, movewindow, r bind = $mainMod SHIFT, up, movewindow, u bind = $mainMod SHIFT, down, movewindow, d # Resize focused window with mainMod + CTRL + SHIFT + arrow keys bind = $mainMod SHIFT CTRL, left, resizeactive, -100 0 bind = $mainMod SHIFT CTRL, right, resizeactive, 100 0 bind = $mainMod SHIFT CTRL, up, resizeactive, 0 -100 bind = $mainMod SHIFT CTRL, down, resizeactive, 0 100 # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic # 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 # Brightness controls bind=,XF86MonBrightnessDown,exec,brightnessctl set 5%- bind=,XF86MonBrightnessUp,exec,brightnessctl set +5% # Volume controls binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+ binde =, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%- bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # WINDOWS AND WORKSPACES windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. # DARKMODE exec = gsettings set org.gnome.desktop.interface gtk-theme "YOUR_DARK_GTK3_THEME" # for GTK3 apps exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps ======Config-End======== ```

Description

I recently installed hyprland on my laptop and I've been having a few visual bugs. I can't seem to find any issues with this same problem so I'm making one.

Window borders seem to lag behind when using resizeactive. Closing a window right after switching workspaces also causes a visual bug.

How to reproduce

  1. Open 2 windows and resize them using resizeactive keybind.
  2. Open a window, switch workspaces, switch back and quickly close the window.

Crash reports, logs, images, videos

https://github.com/user-attachments/assets/ec023b7f-c47e-48ff-95d9-710f8e43767b

solomonton commented 3 months ago

I apologize for writing off-topic, but could you share your waybar's dotfiles with me ? :)

Dyyynamic commented 3 months ago

Sure, here: https://github.com/Dyyynamic/dotfiles/tree/main/waybar

Dyyynamic commented 3 months ago

For those with the same issue, I added the following lines as a hack/workaround to my config:

# Hack to avoid https://github.com/hyprwm/Hyprland/issues/7441
bind = $mainMod SHIFT CTRL, left, focuswindow, activewindow
bind = $mainMod SHIFT CTRL, right, focuswindow, activewindow
bind = $mainMod SHIFT CTRL, up, focuswindow, activewindow
bind = $mainMod SHIFT CTRL, down, focuswindow, activewindow