guake icon indicating copy to clipboard operation
guake copied to clipboard

Guake moving to another monitor on mouse click

Open J-Schaefer opened this issue 5 years ago • 45 comments

Hello, since the last update the guake terminal is moving to the monitor I click into when it's opened.

To recreate the issue you need to have Guake opened on one window and right after clicking into the Guake terminal or opening it, click on any window or the free desktop surface on the other monitor. It only seems to work one time after Guake got the focus.

I installed Guake from this repository: ppa:linuxuprising/guake. I hope this helps recreating and fixing the issue.

Best,

Jeroen


$ guake --support

Guake Version: 3.7.0

Vte Version: 0.52.2

Vte Runtime Version: 0.52.2


GTK+ Version: 3.22.30

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :1

RGBA visual: True

Composited: True

  • Monitor: 0 - HDMI-0
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 531 x 299 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DP-1
    • Geometry: 1920 x 1080 at 1920, 0
    • Size: 531 x 299 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

J-Schaefer avatar Feb 13 '20 11:02 J-Schaefer

I can confirm this behaviour.

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.52.2

Vte Runtime Version: 0.52.2


GTK+ Version: 3.22.30

GDK Backend: GdkX11.X11Display


Desktop Session: cinnamon


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - eDP1
    • Geometry: 2736 x 1824 at 0, 0
    • Size: 260 x 170 mm²
    • Primary: True
    • Refresh rate: 59.96 Hz
    • Subpixel layout: unknown
  • Monitor: 1
    • Missing, since I write this from my laptop without the second monitor plugged in...

sphh avatar Feb 16 '20 21:02 sphh

Same here. Also I noticed, that I can't hide terminal window by clicking on any window on the monitor with terminal opened. I can see that after click, guake terminal disappear for a moment and appears immediately on top. The only option to hide is to press F12. It behaves like I have 'always on top' turned on (but I dont). Before the update it was working.

$ guake --support Guake Version: 3.7.0

Vte Version: 0.52.2

Vte Runtime Version: 0.52.2


GTK+ Version: 3.22.30

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - DVI-D-0
    • Geometry: 1080 x 1920 at 0, 0
    • Size: 531 x 299 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DP-1-3
    • Geometry: 1920 x 1080 at 1080, 399
    • Size: 531 x 299 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

Charlie789 avatar Feb 17 '20 11:02 Charlie789

Same here. Also, I can no longer maximize the window using Super+; it immediately un-maximizes.

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.52.2

Vte Runtime Version: 0.52.2


GTK+ Version: 3.22.30

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - eDP-1-1
    • Geometry: 1920 x 1080 at 2160, 840
    • Size: 309 x 174 mm²
    • Primary: True
    • Refresh rate: 60.02 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DP-1-2-2-1
    • Geometry: 1080 x 1920 at 0, 0
    • Size: 527 x 296 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 2 - DP-1-2-2-8
    • Geometry: 1080 x 1920 at 1080, 0
    • Size: 527 x 296 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

urdh avatar Feb 17 '20 13:02 urdh

Same Here

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.52.2

Vte Runtime Version: 0.52.2


GTK+ Version: 3.22.30

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - eDP-1
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 293 x 162 mm²
    • Primary: True
    • Refresh rate: 60.03 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - DP-1-1-8
    • Geometry: 2560 x 1440 at 1920, 0
    • Size: 597 x 336 mm²
    • Primary: False
    • Refresh rate: 59.95 Hz
    • Subpixel layout: unknown
  • Monitor: 2 - DP-2
    • Geometry: 2560 x 1440 at 4480, 0
    • Size: 597 x 336 mm²
    • Primary: False
    • Refresh rate: 59.95 Hz
    • Subpixel layout: unknown

kevthehermit avatar Feb 26 '20 09:02 kevthehermit

Presumably you don't have Appear on mouse display option selected under Preferences->Main Window->Placement?

la5942 avatar Feb 27 '20 15:02 la5942

Same here with checked :heavy_check_mark: Appear on mouse display

When I disabled it, I do not have the bug anymore, but then I loose the mouse display feature.

I would expect as before. Open the term where ever the mouse is, but do not change focus on mouse click.

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.52.2

Vte Runtime Version: 0.52.2


GTK+ Version: 3.22.30

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :1

RGBA visual: True

Composited: True

  • Monitor: 0 - HDMI-1
    • Geometry: 1920 x 1080 at 1920, 0
    • Size: 521 x 293 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - HDMI-2
    • Geometry: 1920 x 1080 at 3840, 0
    • Size: 531 x 299 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 2 - DP-1
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 531 x 299 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

NargiT avatar Feb 28 '20 11:02 NargiT

I would expect as before. Open the term where ever the mouse is, but do not change focus on mouse click.

Pretty sure it was never meant to work this way. The terminal appears on your mouse display as per the option, it doesn't seem like a bug to me?

la5942 avatar Feb 28 '20 12:02 la5942

Same here with checked Appear on mouse display

When I disabled it, I do not have the bug anymore, but then I loose the mouse display feature.

I would expect as before. Open the term where ever the mouse is, but do not change focus on mouse click.

$ guake --support

Yes, disabling the Appear on mouse display works for me as well.

J-Schaefer avatar Feb 28 '20 13:02 J-Schaefer

@J-Schaefer Can you close the issue if you have a confirmed solution?

la5942 avatar Feb 28 '20 15:02 la5942

I would expect as before. Open the term where ever the mouse is, but do not change focus on mouse click.

Pretty sure it was never meant to work this way. The terminal appears on your mouse display as per the option, it doesn't seem like a bug to me?

before If I click on another screen, as my terminal was already open it was not moving the it to mouse place.

This is the scenario that we expect Given - not visible terminal (toggled) When - toggle open terminal with mouse position on screen 1 Then - Terminal is open on screen 1 When - Click with mouse on screen 2 Then - Terminal stays on screen 1 *

What happens since the upgrade

  • Already toggled open terminal moves to screen 2

NargiT avatar Feb 28 '20 15:02 NargiT

@J-Schaefer Can you close the issue if you have a confirmed solution?

Well, the solution is to disable one of the options. But I don't believe that the jumping of the window after it has been opened is a feature of Guake. So it's no real solution unfortunately.

J-Schaefer avatar Feb 28 '20 15:02 J-Schaefer

I would expect as before. Open the term where ever the mouse is, but do not change focus on mouse click.

Pretty sure it was never meant to work this way. The terminal appears on your mouse display as per the option, it doesn't seem like a bug to me?

before If I click on another screen, as my terminal was already open it was not moving the it to mouse place.

This is the scenario that we expect Given - not visible terminal (toggled) When - toggle open terminal with mouse position on screen 1 Then - Terminal is open on screen 1 When - Click with mouse on screen 2 Then - Terminal stays on screen 1 *

What happens since the upgrade

  • Already toggled open terminal moves to screen 2

Thanks for the clarification! It's really comprehensible. I do appreciate that.

J-Schaefer avatar Feb 28 '20 15:02 J-Schaefer

In my local install I removed the code from the commit 5205ce2b3360d19e1a53a7996c502a33a435f794 which restored the expected functionality for the terminal positioning on mouse click. (I'm not familiar with the issue that commit was fixing though, so I may see some side effects from this.)

InfinitePuddle avatar Mar 05 '20 21:03 InfinitePuddle

In my local install I removed the code from the commit 5205ce2 which restored the expected functionality for the terminal positioning on mouse click. (I'm not familiar with the issue that commit was fixing though, so I may see some side effects from this.)

I've reverted that commit manually and it worked as expected, thanks

abd3lraouf avatar Mar 07 '20 07:03 abd3lraouf

I believe I have the same issue. I have 3 monitors, and when I used to drop Guake on the left monitor to work on the center it used to stay there, but now it pops up on the monitor where I click the mouse. Once Guake lost its focus it will stay, but accidentally selecting it while tabbing will make Guake appear on the monitor with the mouse again.

InFerYes avatar Mar 30 '20 09:03 InFerYes

It seems the functions set_final_window_rect from RectCalculator is used at each window_event due to the commit 5205ce2 with the call of the function unfullscreen, causing the change of the monitor where Guake is shown.

tytan652 avatar Mar 31 '20 10:03 tytan652

I will confirm this is a recent change in behavior. I have 3 monitors. I open Guake on one, say the right one. If I click out of Guake onto anything on the right monitor, then click something in the middle or left monitor, it stays in place on the right monitor. If I do not click out of Guake, it moves monitors when I click on the middle or right monitor. Since this was never needed before, more often than not I forget to click out of Guake ( an uneeded extra click ) and end up just getting rid of Guake and opening Tilix since it doesn't move around on me.

This is a recent change in behavior. Previously it stayed where it was. As for the check box in Preferences > Main Windows > Appear on mouse display, this is not really a good solution. If I uncheck it I can set which monitor to open on and that partially works as it will stay there. However, that presumes I always want it to open on one monitor, which is not the case. For me, I will use all three monitors at times depending on what I have open and where these open windows are placed. Otherwise I'd have to move everything I'm working on on one monitor to another one then open Guake so I can continue to do what I'm doing in my other windows. That or sacrifice one monitor specifically for Guake and not have anything else open on it, thus making it almost a wasted monitor as there's only specific times I use I use the terminal for more than 10 seconds. I suppose if I had a terminal open 100% of the time that would be acceptable.

In the end I would like to see a return of the previous functionality where once I open it on a monitor, it stays there unless I tell it to move. Not move on its own accord.

Thanks for the work on Guake! I do appreciate the program and like to use it, when it's not jumping around all over the place :p

jonnyabu1 avatar Apr 20 '20 15:04 jonnyabu1

This is still an issue that is very annoying with multi-monitor setups.

VintageCake avatar Apr 29 '20 07:04 VintageCake

I can confirm this as well. Looking at the date of the commit & release that appears to be about the time I started having the issue as well.

I started using guake a few years ago mainly due to being stuck on a tiny laptop screen at the time for the benefit of hiding and tabs (and maybe a little Quake nostalgia...) and it just grew on me.

Since I never use the fullscreen toggle I'll probably do the same as @AbdElraoufSabri and manually revert it and build a temporary substitute for the current package I am using from the Arch community repo.

Thank you to the author and all the maintainers for all your hard work!

`

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.60.0

Vte Runtime Version: 0.60.0


GTK+ Version: 3.24.14

GDK Backend: GdkX11.X11Display


Desktop Session: xfce


Display: :0.0

RGBA visual: True

Composited: False

  • Monitor: 0 - BOE eDP1
    • Geometry: 1366 x 768 at 1920, 328
    • Size: 340 x 190 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - SAM DP2
    • Geometry: 1920 x 1080 at 3286, 16
    • Size: 480 x 270 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown
  • Monitor: 2 - VIZ HDMI1
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 850 x 480 mm²
    • Primary: False
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown `

phiberoptick avatar May 07 '20 16:05 phiberoptick

Downgrade to 3.6.3 helped me

artturik avatar Jun 25 '20 13:06 artturik

Downgrade or install different drop down terminal seems to be only option. Really sucks when you have mouse set to activate on hover. Just keeps popping a terminal on ever screen move. I love guake but need another option to only open on mouse position when activated not on click or on focus.

DanitiKain avatar Nov 04 '20 01:11 DanitiKain

I applied PR #1774 and that seems to have fixed the problem for me. I just modified utils.py and restarted guake. For me it was located at /usr/lib/python3.7/site-packages/guake/utils.py, but it will probably depend on your distro.

stiltr avatar Dec 09 '20 05:12 stiltr

I applied PR #1774 and that seems to have fixed the problem for me. I just modified util.py and restarted guake. For me it was located at /usr/lib/python3.7/site-packages/guake/utils.py, but it will probably depend on your distro.

I can confirm that this looks to be working for me as well. Finally! Good stuff

For me, on Manjaro it was located in /usr/lib/python3.8/site-packages/guake/utils.py

jonnyabu1 avatar Dec 09 '20 05:12 jonnyabu1

thanks @stiltr, it worked perfectly! I can confirm on pop os!

andrezap avatar Dec 21 '20 07:12 andrezap

Downgrade to 3.6.3 helped me

https://ubuntu.pkgs.org/20.04/ubuntu-universe-i386/guake_3.6.3-2_all.deb.html works, ty.

diegoduncan21 avatar Jan 11 '21 22:01 diegoduncan21

Can confirm that https://github.com/Guake/guake/pull/1774/commits/9bfd2bcbe326dc5d5500cbc6a01d73535ddb0f27 works

KristjanTammekivi avatar Mar 03 '21 13:03 KristjanTammekivi

It works out here too! v3.7.0

fermino avatar Apr 15 '21 19:04 fermino

3.6.3 stopped working after recent update.... So I guess I'm off to find a replacement....

JanezStupar avatar May 13 '21 11:05 JanezStupar

Hi! This is still happening to me in version 3.7.0 in a virtual machine

Iakobs avatar May 27 '21 16:05 Iakobs

@JanezStupar & @Iakobs, did you try https://github.com/Guake/guake/issues/1720#issuecomment-741529867?

stiltr avatar May 27 '21 20:05 stiltr