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

Click-through bug in Gnome 46 #309579

Closed
BillHuang2001 opened this issue May 6, 2024 · 2 comments
Closed

Click-through bug in Gnome 46 #309579

BillHuang2001 opened this issue May 6, 2024 · 2 comments
Labels
0.kind: bug 6.topic: GNOME GNOME desktop environment and its underlying platform

Comments

@BillHuang2001
Copy link
Contributor

BillHuang2001 commented May 6, 2024

Describe the bug

Upgrade to Gnome 46 on NixOS (unstable) after #291339 introduces a click-through issue in some maximized windows. Clicks intended for the active application are passed through to the window below.

This bug has already been reported in the upstream in

  1. https://gitlab.gnome.org/GNOME/mutter/-/issues/3404
  2. https://gitlab.gnome.org/GNOME/mutter/-/issues/3451

The first issue is closed in the upstream, and the fix might already be included in mutter 46.1 for NixOS (unstable). However, the second issue remains open and seems more relevant to our case, as it specifically mentions fullscreen games.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Upgrade to Gnome 46
  2. Open a full-screen game in the steam
  3. Try to click on different parts of the window, some parts have the click-through issue.

Expected behavior

The click event should be correctly passed to the top application.

Screenshots

The upstream issue contains screenshots and screencasts.

Additional context

Following the suggestion in the second issue, I tested applying this patch and it appears to resolve the bug.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.9, NixOS, 24.05 (Uakari), 24.05pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.22.0`
 - nixpkgs: `/nix/store/6433ddv0byqar86p7a3ja2vg6grq6mga-source`

Add a 👍 reaction to issues you find important.

@BillHuang2001 BillHuang2001 added 0.kind: bug 6.topic: GNOME GNOME desktop environment and its underlying platform labels May 6, 2024
@meutraa
Copy link
Contributor

meutraa commented May 20, 2024

Since this drove me crazy, and who knows when the next mutter version will land, here is a fix for now.

Download the patch for the mutter fix (https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3720.patch)

{
  nixpkgs = {
    overlays = [
      (final: prev: {
        gnome = prev.gnome.overrideScope (
          self: super: {
            mutter = super.mutter.overrideAttrs (oldAttrs: rec {
              patches = (oldAttrs.patches or [ ]) ++ [ ./3720.patch ];
            });
          }
        );
      })
    ];
  };
}

@meutraa
Copy link
Contributor

meutraa commented May 30, 2024

This has been fixed in mutter 46.2 which is now in 24.05.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: GNOME GNOME desktop environment and its underlying platform
Projects
None yet
Development

No branches or pull requests

2 participants