wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.7k stars 748 forks source link

gnome: mutter: Wayland titlebar passes through clicks #139

Closed jsgf closed 4 years ago

jsgf commented 4 years ago

Describe the bug

On my Wayland system, clicking on the title bar has no effect; the click seems to go straight through it. For example, if there's another window underneath, it gets raised. If I right-click, the underlying window gets raised and it shows its right-button menu.

Environment (please complete the following information):

To Reproduce

1.Move wezterm's title-bar over another window 2.Try to interact with the title bar

Configuration

default (wezterm -n)

Expected behavior

Ability to move/close/maximize/minimize the window

Additional context

System is Fedora 31 with Gnome3/Wayland

wez commented 4 years ago

This doesn't happen for me on my Fedora 31 Gnome 3/Wayland system, so I wonder if there is something about your workflow/system config that leads to something getting in a confused state?

For me the behavior that seems the most janky about the titlebar is that it doesn't immediately react to changes in the mouse focus when I click in another window (perhaps your focus-follows-mouse preference is a factor?) and that its width usually lags behind in a resize.

jsgf commented 4 years ago

Yeah, the focus also goes to the windows behind when I hover the pointer over the titlebar. It's like its not being treated as part of the window.

Turning focus-follows-mouse off doesn't help - clicking on the titlebar still focuses the window underneath.

jsgf commented 4 years ago

I can still repro it with wezterm -n, so it doesn't have anything to do with my wezterm config.

wez commented 4 years ago

I rebooted and can now reproduce this, so I assume it must be due to a relatively recent change in gnome3/mutter.

wez commented 4 years ago

if you haven't already found this, this will use x11 instead and perhaps save a little sanity:

enable_wayland = false
wez commented 4 years ago

Here's the up-upstream issue in Mutter: https://gitlab.gnome.org/GNOME/mutter/issues/1024

wez commented 4 years ago

I updated this evening and this appears to be fixed with this version of mutter:

$ rpm -q mutter
mutter-3.34.4-1.fc31.x86_64

sudo dnf update and reboot (or allow the software update GUI thingy to install and reboot)

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.