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

Window Snapped to incorrect screen after moving window to other monitor. #109

Open
globalhuman opened this issue Oct 1, 2020 · 5 comments

Comments

@globalhuman
Copy link

Bug:
I have two monitors. 1 Landscape and 1 Portrait. If I have a window on the portrait screen and shift it to the Landscape screen (and vise-versa) and attempt to use the keyboard shortcuts to snap to the left/right/top/bottom then the window snaps back to the portrait screen.

Workaround:
If I interact with the window after moving from portrait to the landscape monitor and then attempt to snap to the left/right/top/bottom it works fine.

Help:
I have had this issue for a while but am looking for either a workaround with keyboard shortcuts or if there is a potential fix.

Ubuntu 18.04
ShellTile Version: 3.34
Gnome-Shell-version: GNOME Shell 3.28.4

tags: multi-monitor previous display last screen incorrect snapping wrong window

@globalhuman
Copy link
Author

I am no JS coder but I took a quick look at the code today and noticed the cursor position was used in tiling.js which made me experiment.

With the above description. If I move the cursor to the monitor that the window has moved to the accelerator bindings work fine. If I leave the cursor where the window originally was the window snaps back to this original monitor.

I also experimented with having "Group edge tiling" and "Keep the window group maximised" enabled which strangely worked like I would expect. The cursor did not dictate where the snapping occurred. The only issue with this is that I must firstly maximise a window before moving it.

image

@globalhuman
Copy link
Author

Can I buy someone a coffee$ to take a look at this?

@globalhuman
Copy link
Author

I can also add that when "Grouping edge tiling" is enabled, the problem is gone, except however, I do not wish to use that setting.

alas...

@cserpell
Copy link

Hi, I experience the same issue, having an external monitor plugged to a notebook.

When moving the window from one screen to the other (for example, pressing shift + "windows" + arrow), if I try to change its position using ctrl + "windows" + arrow, it goes back to the screen it previously was.

As mentioned, if I interact with the window after moving it from one screen to the other, by clicking, or moving it with the mouse, then it works as expected.

@cserpell
Copy link

I forgot to mention, I am using Ubuntu 21.04, and ShellTile version 65, with the options of the attached image.

$ gnome-extensions info [email protected]
[email protected]
  Name: ShellTile
  Description: A tiling window extension for GNOME Shell. Just move a window to the edges of the screen to create a tiling, otherwise move a window over another one, holding down the Control key. Grouped windows minimize, resize, raise and change workspace together. Move or maximize a window to remove it from the group.
  Path: /home/cserpell/.local/share/gnome-shell/extensions/[email protected]
  URL: https://github.com/emasab/shelltile
  Version: 65
  State: ENABLED
$ gnome-shell --version
GNOME Shell 3.38.4

shelltile

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

2 participants