Ticket #68 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

does not work on dual head

Reported by: lidaobing Owned by: somebody
Priority: major Milestone:
Component: guake Version: 0.3.1
Keywords: Cc:

Description

Hello,

I use dual head in my laptop(1), guake will extend on two screens, how about let guake support only appear in one screen.

PS. yakuake support only show in one screen

thanks.

(1)

$ xrandr | grep connected
VGA connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 303mm x 190mm
TV disconnected (normal left inverted right x axis y axis)

Change History

in reply to: ↑ description   Changed 5 years ago by mariusm

I also bumped into this one. It's a bit annoying, but did you try hitting F11 on dual-head? 8-O It maximizes on one screen, then hit F11 it normalizes on both, then hitting F11 maximizes on the other... and never where I would expect to.

I would expect that:

1) with F12 it would appear on the "active" monitor, i.e. where the mouse cursor is (seems to be more or less consistent in gnome),

2) then F11 would maximize on the monitor it has just appeared

3) then F12 would hide it,

4) next F12 would bring guake maximized again, but on the "active" monitor (potentially different from where it was maximized in step 2).

and... ouch! xrandr is showing just one screen on nvidia (proprietary driver):

$ xrandr | grep connected
default connected 2960x1050+0+0 0mm x 0mm

But somehow apps are aware about the screen split between two monitors.

  Changed 4 years ago by licio

I tried to attach the file .diff but the trac system hates me. So I'm pasting the diff file content here, if you need the .diff file, please let me know.

diff --git a/src/guake.py b/src/guake.py index 1e38258..5f5f8d9 100644 --- a/src/guake.py +++ b/src/guake.py @@ -806,13 +806,17 @@ class Guake(SimpleGladeApp?):

self.visible = False

def get_window_size(self):

- width = self.window.get_screen().get_width() + screen = self.window.get_screen()

height = self.client.get_int(GCONF_PATH+'general/window_size') # avoiding X Window system error

- max_height = self.window.get_screen().get_height() + max_height = screen.get_height()

if height > max_height:

height = max_height

+ # get the width just from the first/default monitor + # in the future we might create a field to select which monitor you wanna use + width = screen.get_monitor_geometry(0).width +

return width, height

  Changed 4 years ago by GabrielFalcao

  • status changed from new to closed
  • resolution set to fixed

Closed in [fa864158f7bbe5120d55ea64cce775c4ee25a78a] Thanks for licio

Note: See TracTickets for help on using tickets.