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
20k stars 851 forks source link

Pop up menu opacity/transparency not properly under some circumstance #6737

Open shilkazx opened 3 months ago

shilkazx commented 3 months ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: Tue Jun 25 12:06:02 2024 Tag: v0.41.2, commits: 4886 flags: (if any) System Information: System name: Linux Node name: shilka Release: 6.9.7-zen1-1-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:27 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c) (prog-if 00 [VGA controller]) DeviceName: VGA 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/shilka/.config/hypr/hyprland.conf: Read Succeeded # ####################################################################################### # AUTOGENERATED HYPR CONFIG. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. # ####################################################################################### # autogenerated = 1 # remove this line to remove the warning # This is an example Hyprland config file. # Refer to the wiki for more information. # https://wiki.hyprland.org/Configuring/Configuring-Hyprland/ # Please note not all available settings / options are set here. # For a full list, see the wiki # You can split this configuration into multiple files # Create your files separately and then link them to this file like this: # source = ~/.config/hypr/myColors.conf ################ ### MONITORS ### ################ # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=HDMI-A-1, 1920x1080, 0x0, 1 monitor=eDP-1, 1680x1050, 1920x0, 1 monitor=,preferred,auto,auto ################### ### MY PROGRAMS ### ################### # See https://wiki.hyprland.org/Configuring/Keywords/ # Set programs that you use $terminal = terminator $fileManager = nemo #$menu = wofi --show drun --allow-images $menu = rofi -show ################# ### AUTOSTART ### ################# # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: exec-once = /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 exec-once = hypridle #exec-once = [workspace special magic] $terminal exec-once = nm-applet & exec-once = waybar & hyprpaper # exec-once = waybar & hyprpaper & firefox exec-once = copyq --start-server exec-once = udiskie -v -t --appindicator exec-once = nutstore exec-once = blueman-applet exec-once = tilda --dbus exec-once = safeeyes exec-once = dunst exec-once = fcitx5 ############################# ### ENVIRONMENT VARIABLES ### ############################# # See https://wiki.hyprland.org/Configuring/Environment-variables/ env = HYPRLAND_NO_SD_NOTIFY,1 # set cursor theme env = XCURSOR_SIZE,24 env = XCURSOR_THEME,whiteglass #env = HYPRCURSOR_SIZE,24 #env = HYPRCURSOR_THEME,whiteglass env = GDK_BACKEND,wayland,x11,* env = QT_QPA_PLATFORM,wayland;xcb env = SDL_VIDEODRIVER,wayland env = CLUTTER_BACKEND,wayland env = XDG_CURRENT_DESKTOP,Hyprland env = XDG_SESSION_TYPE,wayland env = XDG_SESSION_DESKTOP,Hyprland env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = QT_QPA_PLATFORMTHEME,qt5ct #env = GTK_IM_MODULE,fcitx env = QT_IM_MODULE,fcitx ##################### ### LOOK AND FEEL ### ##################### # Refer to https://wiki.hyprland.org/Configuring/Variables/ # https://wiki.hyprland.org/Configuring/Variables/#general general { gaps_in = 3 gaps_out = 3 border_size = 1 # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) # Set to true enable resizing windows by clicking and dragging on borders and gaps resize_on_border = false # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = false #layout = dwindle layout = master } # https://wiki.hyprland.org/Configuring/Variables/#decoration decoration { rounding = 5 # Change transparency of focused and unfocused windows active_opacity = 1.0 inactive_opacity = 0.5 drop_shadow = true shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) # https://wiki.hyprland.org/Configuring/Variables/#blur blur { enabled = true size = 3 passes = 1 vibrancy = 0.1696 } } # https://wiki.hyprland.org/Configuring/Variables/#animations animations { enabled = true # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more 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 animation = specialWorkspace, 1, 3, default, slidevert # animation = specialWorkspace, 1, 6, default, slidefadevert -50% } # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more 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 } # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more master { new_status = master } # https://wiki.hyprland.org/Configuring/Variables/#misc 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 ### ############# # https://wiki.hyprland.org/Configuring/Variables/#input input { kb_layout = us kb_variant = kb_model = kb_options = kb_rules = numlock_by_default = true follow_mouse = 1 sensitivity = 0 # -1.0 - 1.0, 0 means no modification. touchpad { natural_scroll = false } repeat_rate = 25 repeat_delay = 600 } # https://wiki.hyprland.org/Configuring/Variables/#gestures gestures { workspace_swipe = false } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more device { name = epic-mouse-v1 sensitivity = -0.5 } #################### ### KEYBINDINGSS ### #################### # See https://wiki.hyprland.org/Configuring/Keywords/ $mainMod = SUPER # Sets "Windows" key as main modifier # trigger when the switch is toggled bindl = , switch:[Lid Switch], exec, hyprlock # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod_CTRL, Return, exec, $terminal bind = $mainMod, C, killactive, bind = $mainMod_CTRL, Q, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, P, exec, $menu drun bind = $mainMod, X, exec, $menu run #bind = $mainMod, D, pseudo, # dwindle #bind = $mainMod, S, togglesplit, # dwindle bind = $mainMod, Z, exec, hyprlock bind = , Print, exec, env XDG_CURRENT_DESKTOP=sway flameshot gui #bind = ALT_CTRL, H, pass, title: ^(CopyQ)$ bind = ALT_CTRL, H, exec, copyq toggle #bind = $mainMod, F1, pass, tilda bind = $mainMod, grave, exec, dunstctl history-pop bind = $mainMod SHIFT, grave, exec, dunstctl close-all bind = $mainMod_CTRL, R, exec, hyprctl reload bind = ALT_CTRL, X, exec, goldendict bind = $mainMod, F1, exec, tilda -T # Media control bind = , XF86AudioMute, exec, amixer -c 0 sset Master toggle |grep \"Mono: Playback\"|awk '{print \"Sound Toggle: \"$6}'|xargs -i notify-send {} bind = , XF86AudioRaiseVolume, exec, amixer -c 0 sset Master 5%+ |grep \"Mono: Playback\"|awk '{print \"Volume Set to \"$4}'|xargs -i notify-send {} bind = , XF86AudioLowerVolume, exec, amixer -c 0 sset Master 5%- |grep \"Mono: Playback\"|awk '{print \"Volume Set to \"$4}'|xargs -i notify-send {} bind = , XF86Calculator, exec, yad --calendar # Move focus with mainMod + arrow keys #bind = $mainMod, H, movefocus, l #bind = $mainMod, L, movefocus, r #bind = $mainMod, J, movefocus, u #bind = $mainMod, K, movefocus, d bind = $mainMod, Tab, focuscurrentorlast bind = ALT, Tab, cyclenext bind = ALT, Tab, bringactivetotop bind = ALT_SHIFT, Tab, cyclenext, prev bind = ALT_SHIFT, Tab, bringactivetotop bind = $mainMod, Space, layoutmsg, orientationnext bind = $mainMod_SHIFT, Space, layoutmsg, orientationprev bind = $mainMod, Return, layoutmsg, swapwithmaster # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, r~1 bind = $mainMod, 2, workspace, r~2 bind = $mainMod, 3, workspace, r~3 bind = $mainMod, 4, workspace, r~4 bind = $mainMod, 5, workspace, r~5 bind = $mainMod, 6, workspace, r~6 bind = $mainMod, 7, workspace, r~7 bind = $mainMod, 8, workspace, r~8 bind = $mainMod, 9, workspace, r~9 #bind = $mainMod, 0, workspace, r~10 # make back to last workspace logic conventional binds { workspace_back_and_forth = false allow_workspace_cycles = true } bind = $mainMod, Escape, workspace, previous # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, r~1 bind = $mainMod SHIFT, 2, movetoworkspace, r~2 bind = $mainMod SHIFT, 3, movetoworkspace, r~3 bind = $mainMod SHIFT, 4, movetoworkspace, r~4 bind = $mainMod SHIFT, 5, movetoworkspace, r~5 bind = $mainMod SHIFT, 6, movetoworkspace, r~6 bind = $mainMod SHIFT, 7, movetoworkspace, r~7 bind = $mainMod SHIFT, 8, movetoworkspace, r~8 bind = $mainMod SHIFT, 9, movetoworkspace, r~9 #bind = $mainMod SHIFT, 0, movetoworkspace, r~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 bind = $mainMod, Right, workspace, e+1 bind = $mainMod, Left, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow bind = $mainMod, F, togglefloating, bind = $mainMod_SHIFT, M, fullscreen, 0 bind = $mainMod, M, fullscreen, 1 bind = $mainMod, O, movewindow, mon:+1 bind = $mainMod, I, focusmonitor, +1 ############################## ### WINDOWS AND WORKSPACES ### ############################## # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules # workspace binding workspace=1, monitor:HDMI-A-1 workspace=2, monitor:HDMI-A-1 workspace=3, monitor:HDMI-A-1 workspace=4, monitor:HDMI-A-1 workspace=5, monitor:HDMI-A-1 workspace=6, monitor:HDMI-A-1 workspace=7, monitor:HDMI-A-1 workspace=8, monitor:HDMI-A-1 workspace=9, monitor:HDMI-A-1 workspace=11, monitor:eDP-1 workspace=12, monitor:eDP-1 workspace=13, monitor:eDP-1 workspace=14, monitor:eDP-1 workspace=15, monitor:eDP-1 workspace=16, monitor:eDP-1 workspace=17, monitor:eDP-1 workspace=18, monitor:eDP-1 workspace=19, monitor:eDP-1 workspace = special:magic, opacity 0.7 # unscale XWayland XWayland currently looks pixelated on HiDPI screens, due to Xorg’s inability to scale. xwayland { force_zero_scaling = true } # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. windowrulev2 = float, class:copyq windowrulev2 = minsize 500 300, class:copyq windowrulev2 = forceinput, class:Tilda windowrulev2 = focusonactivate, class:Tilda #windowrulev2 = float, class:Tilda windowrulev2 = opacity 0.8, class:Tilda # Flameshot rules ## important #windowrulev2 = nofullscreenrequest,class:flameshot windowrulev2 = float,class:flameshot #windowrulev2 = monitor 0,class:flameshot #windowrulev2 = move 0 0,class:flameshot ## visual windowrulev2 = noanim,class:flameshot windowrulev2 = noborder,class:flameshot windowrulev2 = rounding 0,class:flameshot ## disable popup window transparency #windowrulev2 = opaque,class:(),title:() #windowrulev2 = noshadow,class:(),title:() #windowrulev2 = noblur,class:(),title:() windowrulev2 = opaque,class:GoldenDict-ng ======Config-End======== ```

Description

Under some circumstance, the non-active opacity/transparency for some pop up window (some apps' right click menu, input method window, IDE smart prompt etc.) not work properly. Some apps' pop-ups are displayed as a transparency window if decoration section's inactive_opacity is not 1. App Works fine: firefox, terminator, nemo etc. App in trouble: Jetbrain's IDE(IDEA), vscode etc.

How to reproduce

open troublesome app(e.g. vscode), right click to show pop up menu or input some code and let auto complete pop-up or using input method(fcitx) input something.

Crash reports, logs, images, videos

No response

MightyPlaza commented 3 months ago

is this a xwayland issue?