Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dying light 2 transparent window? #6664

Closed
Sincide opened this issue Jun 25, 2024 · 4 comments
Closed

Dying light 2 transparent window? #6664

Sincide opened this issue Jun 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Sincide
Copy link

Sincide commented Jun 25, 2024

Regression?

Yes

System Info and Version

System/Version info
Hyprland, built from branch main at commit 4dd2b5902e770eeaf84820eccfebb5451aedb6a5  (hyprctl: add a newline after log()).
Date: Mon Jun 24 23:58:10 2024
Tag: v0.41.1-63-g4dd2b590, commits: 4881

flags: (if any)


System Information:
System name: Linux
Node name: archlinux
Release: 6.9.6-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Fri, 21 Jun 2024 19:49:19 +0000


GPU information:
0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev cc) (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/martin/.config/hypr/hyprland.conf: Read Succeeded
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#

# See https://wiki.hyprland.org/Configuring/Monitors/
#monitor = ,preferred,auto,1


#monitor=DP-1,2560x1440@120,2560x0,1
#monitor=HDMI-A-1,2560x1440@120,0x0,1
#monitor=DP-3,5120x1440@120,0x1440,1



workspace = 2, monitor:DP-1, persistent:true
#workspace = 4, monitor:DP-1, persistent:true
#workspace = 9, monitor:DP-1, persistent:true

workspace = 1, monitor:DP-3, persistent:true
#workspace = 2, monitor:DP-3, persistent:true
#workspace = 6, monitor:DP-3, persistent:true

workspace = 3, monitor:HDMI-A-1, persistent:true
#workspace = 6, monitor:HDMI-A-1, persistent:true

xwayland {
  force_zero_scaling = true
}

## Plugins ##



# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
exec-once = waybar
exec-once = waybar -c ~/.config/waybar/config_bottom.json -s ~/.config/waybar/style_bottom.css
exec-once = hyprpaper
#exec-once = swww-daemon --format xrgb ##Too complicated
exec-once = hypridle
exec-once = dunst
# Setup XDG for screen sharing
exec-once = ~/.config/hypr/scripts/xdg.sh
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = aplay ~/dotfiles/login.wav
exec-once = pypr
# Start Signal in Tray
exec-once = signal-desktop --start-in-tray
# Start Flatpaks
exec-once = ~/.config/hypr/scripts/fpstart
#exec-once = steam -silent
exec-once = ums

# Source a file (multi-file configs)
source = ~/.config/hypr/conf/keybinds.conf
source = ~/.cache/wal/colors-hyprland.conf
source = ~/.config/hypr/monitors.conf

# Some default en~ vars.
env = XCURSOR_SIZE,24
#env = GDK_BACKEND,wayland;x11
#env = QT_QPA_PLATFORM,wayland;xcb
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = GTK_THEME, adw-gtk3-dark

debug:disable_logs = false


# For KVM virtual machines
# env = WLR_NO_HARDWARE_CURSORS, 1
# env = WLR_RENDERER_ALLOW_SOFTWARE, 1

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = se
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =
    numlock_by_default = true
    follow_mouse = 1

    touchpad {
        natural_scroll = false
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 5
    gaps_out = 20
    border_size = 2
    #col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.active_border = $color1 $color1 $color2 45deg
    col.inactive_border = $background
    #col.inactive_border = rgba(595959aa)
    layout = dwindle
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    rounding = 10

    blur {
        enabled = true
        size = 3
        passes = 1
    }

    drop_shadow = true
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}

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 = 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 {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    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 {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
#    new_is_master = true
#}

gestures {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    workspace_swipe = false
}

misc {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    disable_hyprland_logo = true
    disable_splash_rendering = true
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more

## Window
# Float and center Alacritty windows running updateinstall.sh

windowrulev2 = float,class:^(Alacritty)$,title:^(Update)$
windowrule=float,title:^(Update)(.*)$
#windowrulev2=immediate,class:(steam_app)
windowrulev2 = float, class:floating
windowrulev2 = forceinput, class:(Rofi)$
# Make all Steam windows float
#windowrulev2 = float,class:^steam$

# Make all Steam games float
#windowrulev2 = float,title:^.* - Steam$

Config File: /home/martin/.config/hypr/conf/keybinds.conf: Read Succeeded
$mainMod = SUPER  # Define the main modifier key as SUPER

# Keybindings for launching applications and managing system
bind = $mainMod, RETURN, exec, alacritty  # Launch Alacritty terminal emulator
bind = $mainMod, C, killactive  # Kills the active window
bind = $mainMod, M, exit  # Exits Hyprland
bind = $mainMod, E,exec,nemo  # Opens Nemo file manager
bind = $mainMod, T,togglefloating  # Toggles the floating state of the active window
bind = $mainMod, F,fullscreen  # Toggles fullscreen state of the active window
bind = $mainMod, D, exec, fuzzel  # Launches Wofi in drun mode
bind = $mainMod CTRL, RETURN, exec, rofi -show drun  # Launches Rofi in drun mode with CTRL+RETURN
bind = $mainMod, B, exec, brave --ozone-platform=wayland  # Opens Chromium browser with Wayland backend
bind =, PRINT, exec, ~/.config/hypr/scripts/swappy  # Executes screenshot tool 'swappy'
bind = $mainMod, W, exec, ~/.config/hypr/scripts/select_wall.sh  # Executes wallpaper selection script
bind = $mainMod, SPACE, exec, pypr toggle term  # Toggles Scratchpad
bind = $mainMod, K, exec, ~/.config/hypr/scripts/binds.sh  # Executes a script for additional bindings
bind = $mainMod SHIFT, Q, exec, ~/.config/hypr/scripts/power.sh #Power
bind = $mainMod, U, exec, alacritty --class floating -e ~/dotfiles/.config/hypr/scripts/updateinstall.sh #Update
bind = $mainMod, L, exec, hyprctl dispatch dpms off #Locks screen
bind = $mainMod SHIFT, L,exec, hyprctl dispatch dpms on #Unlocks screen

# Keybindings for audio control
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%  # Increase audio volume
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%  # Decrease audio volume

# Keybindings for navigating focus and workspaces
bind = $mainMod, left, focusmonitor,  HDMI-A-1 # Move focus left
bind = $mainMod, right, focusmonitor, DP-3  # Move focus right
bind = $mainMod, up, movefocus, u  # Move focus up
bind = $mainMod, down, focusmonitor, DP-1  # Move focus down
bind = $mainMod SHIFT, LEFT, movewindow, l  # Move window left
bind = $mainMod SHIFT, UP, movewindow, u    # Move window up
bind = $mainMod SHIFT, DOWN, movewindow, d  # Move window down
bind = $mainMod SHIFT, RIGHT, movewindow, r # Move window right
bind = $mainMod, 1, workspace, 1  # Switch to workspace 1
bind = $mainMod, 2, workspace, 2  # Switch to workspace 2
bind = $mainMod, 3, workspace, 3  # Switch to workspace 3
bind = $mainMod, 4, workspace, 4  # Switch to workspace 4
bind = $mainMod, 5, workspace, 5  # Switch to workspace 5
bind = $mainMod, 6, workspace, 6  # Switch to workspace 6
bind = $mainMod, 7, workspace, 7  # Switch to workspace 7
bind = $mainMod, 8, workspace, 8  # Switch to workspace 8
bind = $mainMod, 9, workspace, 9  # Switch to workspace 9
bind = $mainMod, 0, workspace, 10  # Switch to workspace 10
bind = $mainMod SHIFT, 1, movetoworkspace, 1  # Move active window to workspace 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2  # Move active window to workspace 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3  # Move active window to workspace 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4  # Move active window to workspace 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5  # Move active window to workspace 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6  # Move active window to workspace 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7  # Move active window to workspace 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8  # Move active window to workspace 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9  # Move active window to workspace 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10  # Move active window to workspace 10

# Keybindings for scrolling through workspaces
bind = $mainMod, mouse_down, workspace, e+1  # Scroll to next workspace
bind = $mainMod, mouse_up, workspace, e-1  # Scroll to previous workspace

# Keybindings for window manipulation
bindm = $mainMod, mouse:272, movewindow  # Move window with left mouse button
bindm = $mainMod, mouse:273, resizewindow  # Resize window with right mouse button


Config File: /home/martin/.cache/wal/colors-hyprland.conf: Read Succeeded
$background = rgb(05040A)
$foreground = rgb(c6bfc9)
$color0 = rgb(05040A)
$color1 = rgb(4E4559)
$color2 = rgb(595064)
$color3 = rgb(6A5F74)
$color4 = rgb(796F84)
$color5 = rgb(86798E)
$color6 = rgb(6D93AC)
$color7 = rgb(c6bfc9)
$color8 = rgb(8a858c)
$color9 = rgb(4E4559)
$color10 = rgb(595064)
$color11 = rgb(6A5F74)
$color12 = rgb(796F84)
$color13 = rgb(86798E)
$color14 = rgb(6D93AC)
$color15 = rgb(c6bfc9)


Config File: /home/martin/.config/hypr/monitors.conf: Read Succeeded
# Generated by nwg-displays on 2024-05-05 at 04:01:04. Do not edit manually.

monitor=DP-3,[email protected],2560x0,1
monitor=DP-1,[email protected],0x1440,1
monitor=HDMI-A-1,[email protected],0x0,1

Description

Hey, I have this weird issue with only one game, Dying Light 2 on the latest versions of Hyprland .40.X works, but .41.X, and the -git version does not. Its really weird, because the game window is completely transparent. Its only this game that does it, and I have tried it in KDE, SWAY and Gnome and it works on wayland in those other WM/DE:s. Nothing crashes, its just a transparent window until i either force close it or close it via steam. Sound also works.
I have tried with different versions of Proton as well

How to reproduce

Update to 0.41.X and start Dying light 2 from Steam

I updated via Arch official repos from 0.40.0-1 to the next official version, and since then it has not been working.

Crash reports, logs, images, videos

Added the logs from this amazing comman: watch -n 0.1 "grep -v "arranged" $XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/hyprland.log | tail -n 40"

hyprlog.txt

@Sincide Sincide added the bug Something isn't working label Jun 25, 2024
@vaxerski
Copy link
Member

perhaps #6375 ?

@Sincide
Copy link
Author

Sincide commented Jun 25, 2024

Might be, I'll close this one since you are already aware.
Have a good one 👍

@Sincide Sincide closed this as completed Jun 25, 2024
@fcarp10
Copy link

fcarp10 commented Jul 13, 2024

@Sincide same issue here. A workaround is to prevent fullscreen for this specific game:

windowrulev2 = suppressevent fullscreen maximize, class:^(steam_app_534380)$
windowrulev2 = forceinput, class:^(steam_app_534380)$

@Sincide
Copy link
Author

Sincide commented Jul 20, 2024

@Sincide same issue here. A workaround is to prevent fullscreen for this specific game:

windowrulev2 = suppressevent fullscreen maximize, class:^(steam_app_534380)$
windowrulev2 = forceinput, class:^(steam_app_534380)$

Thank you so much sir @fcarp10 , this worked flawlessly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants