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

Xwayland apps stop reciving mouse input when Minecraft 1.12.2 is open and full screen. #7310

Open cutebear0123 opened 3 months ago

cutebear0123 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: archlinux Release: 6.10.3-arch1-2 Version: #1 SMP PREEMPT_DYNAMIC Tue, 06 Aug 2024 07:21:19 +0000 GPU information: c4:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (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/cutebear/.config/hypr/hyprland.conf: Read Succeeded # # Please note not all available settings / options are set here. # For a full list, see the wiki # autogenerated = 0 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=HDMI-A-1,preferred,0x0,1 monitor=HDMI-A-2,preferred,auto,1 $mainMod = SUPER #pyprland exec-once = pypr bind = $mainMod, z,exec, pypr zoom exec-once=fcitx5 #lock screen #exec-once = ~/.config/hypr/scripts/lock.sh exec-once = hypridle # clipboard bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy exec-once = wl-clip-persist --clipboard regular exec-once = wl-paste --type text --watch cliphist store #Stores only text data exec-once = wl-paste --type image --watch cliphist store #Stores only image data # Set programs that you use $terminal = kitty $fileManager = thunar $browser = firefox $menu = wofi env = XCURSOR_SIZE,24 env = QT_QPA_PLATFORMTHEME,qt5ct input { kb_layout = us kb_variant = kb_model = kb_options = caps:escape kb_rules = follow_mouse = 0 touchpad { natural_scroll = no } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { gaps_in = 5 gaps_out = 20 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.active_border=0xFFFFECFD gaps_in=8 gaps_out=16 layout = dwindle allow_tearing = false } decoration { rounding=12 drop_shadow=1 shadow_range=25 shadow_render_power=2 shadow_ignore_window=1 shadow_offset= 0 0 col.shadow=0xFF3292F3 col.shadow_inactive=0x000000 blur { enabled=1 size=10 passes=3 new_optimizations=1 noise=0.04 } } animations { enabled = yes # 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 = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = off } # close app bind = ALT , F4, killactive, bind = $mainMod, Q, killactive, bind = $mainMod SHIFT,Q, exit, # apps bind = $mainMod, C, exec, $terminal bind = $mainMod, F, exec, $fileManager bind = $mainMod, M, exec, $menu bind = $mainMod, B, exec, $browser bind = $mainMod SHIFT, right, movetoworkspacesilent, +1 bind = $mainMod SHIFT, left, movetoworkspacesilent, -1 bind = $mainMod SHIFT, up, workspace, -1 bind = $mainMod SHIFT, down, workspace,+1 # 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 workspaces with mainMod + [0-9] bind = $mainMod SHIFT, 1, workspace, 1 bind = $mainMod SHIFT, 2, workspace, 2 bind = $mainMod SHIFT, 3, workspace, 3 bind = $mainMod SHIFT, 4, workspace, 4 bind = $mainMod SHIFT, 5, workspace, 5 bind = $mainMod SHIFT, 6, workspace, 6 bind = $mainMod SHIFT, 7, workspace, 7 bind = $mainMod SHIFT, 8, workspace, 8 bind = $mainMod SHIFT, 9, workspace, 9 bind = $mainMod SHIFT, 0, workspace, 10 #mouse bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow #screenshot bind = $mainMod, S, exec, hyprshot -m region --clipboard-only #plugin exec-once=hyprctl plugin load ~/.config/hypr/hyprtrails.so ======Config-End======== ```

Description

X11 apps running on xwayland stop receiving mouse input when Minecraft 1.12 is running and full screen, even when running in a virtual desktop in the background, keyboard work as normal, the mouse input will click on Minecraft.

How to reproduce

  1. Open a Minecraft 1.12.2 instance.
  2. Press F11 to full screen after the game loaded into title screen.
  3. Open a app like xcalc on a different monitor or put Minecraft into background.

Crash reports, logs, images, videos

No response

AlxTray commented 3 months ago

Not a particular solution or anything, but as a possible workaround you could use this mod to run Minecraft under native wayland rather than XWayland:

https://modrinth.com/mod/waygl

Edit: just realised you said 1.12 nvm

cutebear0123 commented 3 months ago

By the way, from my testing newer version like 1.13 and above does not has this issue.