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

Guake multi-monitor placement / alignment issues in Ubuntu with Unity #395

Closed
hotice opened this issue Oct 28, 2014 · 22 comments
Closed

Guake multi-monitor placement / alignment issues in Ubuntu with Unity #395

hotice opened this issue Oct 28, 2014 · 22 comments

Comments

@hotice
Copy link

hotice commented Oct 28, 2014

In Ubuntu 14.10 (and since there are only a few bug fixes in Ubuntu 14.10 compared to Ubuntu 14.04, I assume the same occurs in Ubuntu 14.04 LTS) with Unity, Guake 0.5.0 gets stuck on the second monitor if using anything other than the "always on primary" option and Guake shows up at least once on the second monitor.

For instance, after enabling "Appear on mouse display", if Guake shows up once on the second display, it then always shows up on the second display, no matter where the mouse is. Or if I set it to appear on the second display and then set it back to the first display, it continues to show up on the second display.

Also, when Guake (with center horizontal alignment and a 70 width value) shows up on the second monitor, it's aligned on the left and not in the center.

Let me know if you need further details.

@gsemet
Copy link
Member

gsemet commented Oct 28, 2014

Bug report looks great. Unfortunately it is really messy for me to test this feature I don't have two monitors... :( anyone can help?

@ocean1
Copy link

ocean1 commented Oct 29, 2014

I think it is a unity bug, since to me it happens mostly when the panel is hidden.
I did a little debugging and everything seems fine in guake.
A temporary workaround is modifying th get_final_window_rect function as follows:

window_rect = screen.get_monitor_geometry(monitor)                                     
if monitor > 0:                                                   
    window_rect[0] +=1
if os.environ.get('DESKTOP_SESSION') == "ubuntu":

though it will only fix the problem with the full width i didn't find a to fix also the centered window when width is less than 100%.

@hotice
Copy link
Author

hotice commented Oct 29, 2014

Hmmm the behavior I mentioned above occurs with the Unity Launcher set to always be visible.

Also, from the guake.py comments (https://github.com/Guake/guake/blob/master/src/guake.py - lines 1218-1226), I see that Guake tries to get the Unity Launcher state / size via gconf, when Unity now uses Dconf. Maybe porting that bit to dconf will fix this, at least partially?

@ocean1
Copy link

ocean1 commented Oct 29, 2014

@hotice I don't think it would fix anything, since I did start playing around with the size of the windowrect and the unity dconf thing just contains a size which gets added to the windowrect, I tried adding an arbitrary size also and still not working, or commenting out all the code but still won't change a thing.
Neverthless the resulting window rects are correct, that's why I'm saying it's probably just a unity bug, since also under other window managers it works without any tweak [and it wouldn't surprise me as there's also plenty of fullscreen/dual monitor bugs under unity which affects a number of application like virtualbox and others.

@gsemet
Copy link
Member

gsemet commented Oct 29, 2014

That can be linked to a bug I have fixed recently about font

@hotice
Copy link
Author

hotice commented Oct 30, 2014

@ocean1 On the other hand, the Xfce Terminal works just fine under Unity with multiple monitors.

If you launch "xfce4-terminal --drop-down", it basically behaves like Guake and it has an option to "Move to monitor with pointer" - using this option, the terminal is always displayed on the correct monitor (and it's also correctly aligned). So whatever it is, it looks like it can be done properly in Unity too...

SeaJaredCode added a commit to SeaJaredCode/guake that referenced this issue Nov 4, 2014
…bugs where the window would sometimes not reposition itself properly (and occasionally fix itself later).

Possibly addresses Issue Guake#395
@hotice
Copy link
Author

hotice commented Nov 19, 2014

With the latest git, Guake shows up on the correct monitor. However, with a width smaller than 100%, Guake is not centered horizontally on the second (non-primary) monitor.

@gsemet gsemet modified the milestones: 0.5.2, 0.6.0 Nov 23, 2014
@devanes
Copy link

devanes commented Dec 31, 2014

I also have a similar problem (guake switching to other displays) in the guake version present in the repositories for Ubuntu 14.0.1. And I am using Xubuntu, so no Unity present. This is guake 0.4.4. On startup of Guake it starts at the display I have manually set in the script, which is my left display (#1) (of 3). Pressing F12 twice (hide and show again) moves it back to the middle display (#0). When I move to the right display (#2) with my mouse and open guake again it moves to that display. Then it stays there, whatever I do with my mouse... unless I open the prefences or about window. If I open one of these windows Guake again shows up (on F12) on the whatever screen my mouse happens to be, unless this is screen #2, where it stays stuck again.

Would you perhaps be willing to create a PPA for your latest Guake version? As (like I mentioned) Ubuntu 14.04 still uses Guake 0.4.4. Having an up-to-date Guake available for Ubuntu without the need for building a package would make testing your fixes a lot easier.

@gsemet gsemet modified the milestones: 0.6.0, 0.7.0 Apr 19, 2015
@gsemet
Copy link
Member

gsemet commented Apr 28, 2015

Can someone reproduce on latest HEAD?

@hotice
Copy link
Author

hotice commented Apr 28, 2015

Tested using:

  • Ubuntu 15.04 64bit with Unity, left Launcher set to always be visible
  • latest Guake from Git with ~70% window width set in Guake Preferences
  • 2 monitors

Results: the app works properly on the primary monitor but is always aligned to the left instead of being centered on the second monitor. I tested this with the "Appear on mouse display" enabled as well as with the option which allows setting Guake on one of the monitors only.

Also, in Guake's Preferences, on General, under "Main Window Horizontal Alignment", all the radio buttons seem enabled - is this normal? Maybe this has something to do with the app not being aligned correctly on the second monitor? Screenshot: http://i.imgur.com/9lT9E53.png

@gsemet
Copy link
Member

gsemet commented Apr 28, 2015

combobox issue fixed by c6c9099

@hotice
Copy link
Author

hotice commented Apr 28, 2015

Unfortunately the combobox fix didn't solve the alignment issue.

@gsemet
Copy link
Member

gsemet commented Apr 28, 2015

indeed, that's why the ticket is still opened. I cannot easily work on it since I only have one screen :(

@gsemet gsemet modified the milestones: 0.8.2, 0.8.1 Aug 18, 2015
@ftonello
Copy link

I can still verify that the bug exists on Ubuntu 15.04 with guake 0.5.0-2.

@gsemet gsemet modified the milestones: 0.8.2, 0.8.3 Oct 25, 2015
@luccamendonca
Copy link

I can still verify that the bug exists on Ubuntu 15.10 with guake 0.8.4 (latest to the day, freshly compiled)

@gsemet gsemet modified the milestones: 0.8.4, 0.8.5 Feb 29, 2016
@gnuton
Copy link

gnuton commented Mar 24, 2016

This bug is still present in ubuntu 16.04 which ships guake 0.8.3.

@gsemet gsemet modified the milestones: 0.8.5, 0.8.6 Jun 6, 2016
@Phiwa
Copy link

Phiwa commented Jul 4, 2016

Any news on this? Running guake on Ubuntu 14.04 with two 24" displays.

@gsemet gsemet modified the milestones: 0.8.6, 0.8.7 Aug 20, 2016
@hotice
Copy link
Author

hotice commented Aug 23, 2016

This bug was fixed for me with Guake 0.8.6/0.8.7.

@hotice hotice closed this as completed Aug 23, 2016
@gsemet
Copy link
Member

gsemet commented Aug 23, 2016

great news !

@vizzard
Copy link

vizzard commented Aug 31, 2016

Unfortunately issue still present in Ubuntu 16.04 LTS with Guake 0.8.7 (full height, full width).

Guake works correctly if Unity Launcher is set to auto-hide.
If Launcher is visible all the time Guake gets stuck on second monitor after opening it there for the first time. It's full width then. If I grab Guake window at the bottom and pull it up a little, then Guake is not full width but it follows mouse between monitors then (gap like in #565, only on second, right screen, main screen is always full width).

@qazip
Copy link

qazip commented Jan 19, 2017

I'm also having this issue on Xubuntu 16.04. Guake is either aligned on one screen OR the other.

The "Main window height" is not scalling properly on my laptop's screen. If I set it all the way to the maximum allowed value, I won't be able to see the tabs (which I've set at the bottom). This behaviour does not happen on my external monitor.

gsemet pushed a commit that referenced this issue Jan 30, 2017
…bugs where the window would sometimes not reposition itself properly (and occasionally fix itself later).

Possibly addresses Issue #395
gsemet pushed a commit that referenced this issue Jan 30, 2017
…bugs where the window would sometimes not reposition itself properly (and occasionally fix itself later).

Possibly addresses Issue #395
@elmerehbi
Copy link

In my case I have a laptop and external monitor. Guake stays on the laptop monitor though I switch the primary monitor occasionally.

System: Ubuntu Gnome 16.04

Setup/Preferences

  • orientation: Vertical (half screen width)
  • Screen size: 77 x 118 (~ half screen width and full screen height)

Behavior

  • If the cursor is on the primary monitor guake opens on the left side of the secondary (i.e. laptop monitor).
  • If the mouse is on the secondary (i.e. laptop) monitor guake opens on the right side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests