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

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

Open
jeremie2 opened this issue Dec 17, 2020 · 15 comments

Comments

@jeremie2
Copy link

jeremie2 commented Dec 17, 2020

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:

  • Gnome Terminal
  • LXTerminal
  • Xfce4-terminla

TERMINALS THAT WORK WITH 2 OPEN TABS

  • Terminology (default terminal on Enlightenment DE)
  • ehm... at least another terminal had the same behaviour, but I've uninstalled it and can't remember which was... so sorry :P

TERMINALS THAT WORK

  • Sakura
  • Konsole (default KDE terminal)
  • Terminator
@giles-carre
Copy link

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 :

  • the term resizes correctly : for exemple, if drag it to the bottom left corner, it resizes to the 1/4 of the screen
  • but it stays in place, ie the head bar just above the bottom of the screen.

I have tried some tests :

  • work with only one screen
  • restore gnome term default configurations

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
[email protected]

@axtimwalde
Copy link

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

@jeremie2
Copy link
Author

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
Copy link

giles-carre commented Jan 18, 2021

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

Environment : Ubuntu 20.10 + GNOME Shell 3.38.1

@axtimwalde
Copy link

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

@jeremie2 jeremie2 changed the title Selltile doesn't work with some terminals (Gnome Terminal included) on GNOME 3.38.1 Shelltile doesn't work with some terminals (Gnome Terminal included) on GNOME 3.38.1 Jan 19, 2021
@nlflint
Copy link

nlflint commented Jan 29, 2021

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
Copy link
Owner

emasab commented Jan 31, 2021

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
Copy link
Author

jeremie2 commented Jan 31, 2021

@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
Copy link
Owner

emasab commented Jan 31, 2021

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

@giles-carre
Copy link

@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
Copy link
Owner

emasab commented Feb 3, 2021

@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
Copy link
Author

jeremie2 commented Feb 3, 2021

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

Thank you very much!

@giles-carre
Copy link

@emasab

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

This extension is the better I use

Thanks a lot

@nlflint
Copy link

nlflint commented Feb 4, 2021

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

@axtimwalde
Copy link

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

nicholascapo pushed a commit to nicholascapo/KeypadTiling that referenced this issue Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants