emasab / shelltile

A tiling window extension for GNOME Shell
https://extensions.gnome.org/extension/657/shelltile/
GNU General Public License v2.0
648 stars 42 forks source link

Shelltile doesn't work with some terminals (Gnome Terminal included) on GNOME 3.38.1 #118

Open jeremie2 opened 3 years ago

jeremie2 commented 3 years ago

GNOME 3.38.1 Ubuntu 20.10 (Update! Same problem also on Ubuntu 20.04 with Gnome 3.36.8).

I've tried to install different terminals to see what happens. In some case Shelltile simply doesn't work, in other cases it works if the terminal has 2 tabs open. Some other terminals has no problems at all.

TERMINALS THAT DON'T WORK Nothing happens dragging window to sides or corners except when the window is dragged to the top side. In that case the window will be maximized. This happens with the following terminals:

TERMINALS THAT WORK WITH 2 OPEN TABS

TERMINALS THAT WORK

giles-carre commented 3 years ago

Hi Emanuele,

First of all, happy new year 2021.

I have the same kind of problem, only with terminal app, since upgrade from Ubuntu 20.04 to Ubuntu 20.10 (reinstall from scratch, including all my dot configuration home files).

I use only Gnome Terminal (v 3.38.0) with Gnome 3.38.1, and ShellTile version 64.

The problem occurs only with terminal (it's OK for all other apps). The behaviour is :

I have tried some tests :

but the problem persists.

If you want, I can do other tests.

And, thank you again for this wonderful extension.

Giles Carré INSA Toulouse - France giles.carre@insa-toulouse.fr

axtimwalde commented 3 years ago

Same problem here. Everything works as expected except for the terminals.

jeremie2 commented 3 years ago

A quick update, Gnome Terminal is having the same problems also on Ubuntu 20.04 with Gnome 3.36.8, probably because of some new updates.

I didn't try any other terminals.

giles-carre commented 3 years ago

New tip : same problem with Signal for Linux (Signal Desktop v1.39.5)

Environment : Ubuntu 20.10 + GNOME Shell 3.38.1

axtimwalde commented 3 years ago

And one more: Inkscape 1.0.1 (0767f8302a, 2020-10-17) installed via snap.

nlflint commented 3 years ago

Having same problem with Gnome shell on Ubuntu 20.04: snapping the terminal resizes the window correctly, but just doesn't put it in the right location (it's mostly off screen). This started right after rebooting from a bunch of auto-updated packages today. Good news, Alacrity terminal is working fine.

Versions: Gnome-terminal: 3.36.2 Gnome-shell: 3.36.4 Ubuntu: 20.04.02 ShellTile: ??? (I reinstalled latest from extensions.gnome.org today) can't identify installed version except "64" from Gnome extensions app. Pretty sure that's not the version, but a bug in the reported version.

emasab commented 3 years ago

Hi, sorry for the wait. @jeremie2 Could you confirm that you're using Xorg and not Wayland, for example with echo $XDG_SESSION_TYPE

jeremie2 commented 3 years ago

@emasab Yes it's Xorg session, sorry forgot to mention it! I'm stuck with Xorg because Middle-clicking title bars does not lower the window under Wayland.

$ echo $XDG_SESSION_TYPE
x11

I'm almost sure it's off topic but, just incase, this is the situation under Wayland: ShellTile by default works only with keyboard shortcuts ctrl + super + arrows (.. even Gnome Terminal works).

It happened that ShellTile started to work with mouse gestures after I have tried other tiling window extensions which work under Wayland (WinTile and Keypad Tiling). Unfortunately this happens ramdomly. I couldn't find a way to reproduce the steps that make ShellTile work under Wayland.

Maybe a look inside WinTile source code could help..

emasab commented 3 years ago

On Wayland it won't work, if something works is by chance. The reason behind this is explained here https://github.com/emasab/shelltile/issues/98. I'm working on Wayland support and after the rewrite will test this behavior on both display servers

giles-carre commented 3 years ago

@emasab Hi Emanuele,

For me, it's X Org too. Wayland isn't installed on my Ubuntu 20.10.

@Nathan : Alacrity doesn't work at all for me (it doesn't start).

Giles

emasab commented 3 years ago

@giles-carre yes, it's a bug I've reproduced on Gnome 3.38. Strangely, with this new version, if you do

this.meta_window.move_resize_frame(true, x, y, w, h);

it only resizes but doesn't move the window for some kinds of windows. If you do a

this.meta_window.move_frame(true, x, y);

afterwards, then it works.

Try the latest version on master, it should be fixed now.

Unfortunately on Gnome 3.38 window grouping in the overlay is not working because they've changed the window placing code another time, but that's another issue.

jeremie2 commented 3 years ago

@emasab Just tried the updated version, happy to confirm that Gnome Terminal is snapping as expected.

Thank you very much!

giles-carre commented 3 years ago

@emasab

I have patched windows.js as your indications, and, marvelous, it works.

This extension is the better I use

Thanks a lot

nlflint commented 3 years ago

The move_frame() patch fixed the problem for me too. thanks!

axtimwalde commented 3 years ago

Just installed the update and now everything works as expected. Thanks so much!