guake icon indicating copy to clipboard operation
guake copied to clipboard

Fixing Guake Window Alignment on Multi Monitor Setups

Open phreakyphoenix opened this issue 3 months ago • 2 comments

I'm on Guake 3.8.0, the latest from the linuxuprising ppa on ubuntu 22.04 I've not tested on 3.10.0, but from the changelogs and main branch code I don't believe that's relevant to this issue.

The floating terminal goes beyond visible area on the right side and is covered by the activity pane on the top on my primary monitor in a multi monitor setup, and there seems to be no UI option to specify settings for each monitor individually.

This however can be very easily solved by in utils.py ie. /usr/lib/python3/dist-packages/guake/utils.py locally inside the RectCalculator.set_final_window_rect method.

if screen.get_n_monitors() > 1 and monitor == 0:
    log.debug("Adjustment for Primary monitor in multi-monitor env applied")
    window_rect.width -= 70          # reduce width
    window_rect.y += 34              # increase top gap

I'm not sure if it makes sense upstreaming it, given the very specific scenario it shows up in, but the underlying bug of Guake overflowing on the primary monitor in multi-monitor setups (with both left and center alignment), is real.

I've shared more details, before/after pictures on my blog article and believe it'd be a good idea to somehow highlight this solution in the docs/ readme on github to help new users facing this.

Thanks for building Guake!

phreakyphoenix avatar Sep 05 '25 10:09 phreakyphoenix

if this is not fixed, i would love to fix it. can you assign it to me?

pb2106 avatar Oct 04 '25 08:10 pb2106

@pb2106 Just make a pull request linking back to this.

Davidy22 avatar Oct 06 '25 01:10 Davidy22