Ubuntu 23.10 Tiling Assistant stops working when Alt is set as the modifier button.

Bug #2039232 reported by maqp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell-extension-tiling-assistant (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.10
Release: 23.10

Package name: gnome-shell-extension-tiling-assistant package (Ubuntu Tiling Assistant)
Package version: 44

---

In Ubuntu 23.10, changing the window-move mouse button modifier from Super to Alt with e.g.

$ gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Alt>'

and then trying to hold Alt while dragging the window from its center (or anything but the title bar), to edge/corner, does not perform tiling.

I also made a video that uses Gnome Tweaks to adjust the modifier and to demo the bug:

https://www.cs.helsinki.fi/u/oottela/ubuntu/tiling_bug.mp4

---

Reverting the changes with

$ gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Super>'

makes the tiling work with Super again.

I installed gnome-shell-extension-manager and had a look at the Ubuntu Tiling Assistant settings, but couldn't find one related to this.

---

I'm sure this is a bug since as per lines 50..55 of the source

/<email address hidden>/src/extension/moveHandler.js

also in the original repo:

https://github.com/Leleat/Tiling-Assistant/blob/main/tiling-assistant%40leleat-on-github/src/extension/moveHandler.js#L50

Using Alt is intended to be handled:

const altAsMod = wmPrefs.get_string('mouse-button-modifier') === '<Alt>';
if (altAsMod) {
    for (const s of [Settings.ADAPTIVE_TILING_MOD, Settings.FAVORITE_LAYOUT_MOD]) {
        const mod = Settings.getInt(s);
        if (mod === 1) // 1 -> Alt; see settings ui
            Settings.setInt(s, 3); // 3 -> Super; see settings ui

Tags: mantic
Paul White (paulw2u)
affects: ubuntu → gnome-shell-extension-tiling-assistant (Ubuntu)
tags: added: mantic
removed: tiling-assistant
Revision history for this message
maqp (oottela) wrote :

I opened an issue about this bug upstream on Dec. 4, 2023:

https://github.com/Leleat/Tiling-Assistant/issues/313

On Feb. 20, 2024, the author stated the following:

```FTR, (stock) Tiling Assistant checks if the Window Action Key is set to Alt and switches the Super and Alt activated grab mode modifiers. But that only happens during install/enable time of the extension. That means if you change the Window Action Key while Tiling Assistant is already enabled, there may be conflicts. I will extend the conflict check by monitoring changes to the gsetting.```

The bug fix was merged in https://github.com/Leleat/Tiling-Assistant/commit/e575676d7df6e3fd3a1701afa1d0db18b31000e3 on Feb. 27, 2024.

Thus, it should now be fixed by just using the latest plugin version from upstream.

Revision history for this message
maqp (oottela) wrote :

The bug was fixed upstream in https://github.com/Leleat/Tiling-Assistant/commit/e575676d7df6e3fd3a1701afa1d0db18b31000e3 on Feb. 27, 2024, and isn't present in 24.04 LTS. Since 23.10 EoL is approaching, the way I see it, this bug is now resolved and the issue can be closed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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