Middle-click titlebar actions (like maximizing vertically) don't work in Wayland sessions

Bug #1698083 reported by Daniel van Vugt on 2017-06-15
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTK+
Confirmed
Wishlist
gnome-shell (Ubuntu)
Medium
Unassigned
gtk+3.0 (Ubuntu)
Medium
Unassigned
mutter (Ubuntu)
Medium
Unassigned

Bug Description

In Gnome Tweak Tool you can configure vertical maximizing for:
  Windows > Titlebar Actions > Middle-Click
However this feature seems to get ignored in Wayland sessions (it just maximizes fully instead). It only works correctly in Xorg Gnome sessions.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-shell 3.24.2-0ubuntu6
ProcVersionSignature: Ubuntu 4.10.0-22.24-generic 4.10.15
Uname: Linux 4.10.0-22-generic x86_64
ApportVersion: 2.20.5-0ubuntu4
Architecture: amd64
Date: Thu Jun 15 14:46:04 2017
DisplayManager: lightdm
InstallationDate: Installed on 2017-05-03 (43 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170502)
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Daniel van Vugt (vanvugt) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Daniel van Vugt (vanvugt) wrote :

Seems to have started working in the past week or so. :)

Changed in gnome-shell (Ubuntu):
status: Confirmed → Fix Released
Daniel van Vugt (vanvugt) wrote :

I take it back. It works randomly, sometimes.

Possibly related to Gnome Tweak Tool > Windows > Titlebar Actions, but that does not seem to do what it's meant to reliably either.

Changed in gnome-shell (Ubuntu):
status: Fix Released → Confirmed
Daniel van Vugt (vanvugt) wrote :

Aha! It appears this feature only works in Xorg sessions ("Ubuntu") and not in "Ubuntu on Wayland" sessions.

summary: - Vertically maximize on middle button click
+ Vertically maximize on middle button click does not work in Wayland
+ sessions

OK, so there are a few steps to fixing this bug:

1. sudo apt install gnome-tweak-tool
2. Gnome Tweak Tool > Windows > Titlebar Actions > Middle-Click = Toggle Maximize Vertically
3. Log in using Xorg ("Ubuntu") for it to work (not "Ubuntu on Wayland").

Step #3 sounds like an obvious bug. But #2 is seemingly also a bug because it interprets the middle click anywhere on the titlebar -- clicking on the maximize button is not considered a special area.

Daniel van Vugt (vanvugt) wrote :

It appears all middle-click titlebar actions don't work when in a Wayland session.

summary: - Vertically maximize on middle button click does not work in Wayland
- sessions
+ Middle-click titlebar actions don't work in Wayland sessions
description: updated
Jeremy Bicha (jbicha) on 2017-07-17
tags: added: wayland
summary: - Middle-click titlebar actions don't work in Wayland sessions
+ Middle-click titlebar actions (like maximizing vertically) don't work in
+ Wayland sessions
Changed in gnome-shell (Ubuntu):
importance: Wishlist → Medium
Changed in mutter (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Daniel van Vugt (vanvugt) wrote :

Actually this bug is only GTK apps on Wayland, so -> https://bugzilla.gnome.org/show_bug.cgi?id=746273

It works in non-GTK apps like Chromium.

Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
description: updated
Changed in gtk:
importance: Unknown → Wishlist
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.