Ticket #236 (new defect)

Opened 3 years ago

Last modified 2 years ago

terminal appears in the middle of screen instead of the top

Reported by: fairf4x Owned by: somebody
Priority: major Milestone:
Component: guake Version: 0.4.1
Keywords: position fluxbox Cc:

Description

Running guake in fluxbox 1.1.1 in Debian. If there is no other window opened in workspace it works just fine but when I have another window opened in workspace and toggle guake visibility, it appears in the middle of screen.

Change History

Changed 2 years ago by marcinn

This issue also occurs in fluxbox 1.3.1 (Arch Linux). It seems to be a gtk<->fluxbox(?) issue after self.window.show_all() call. I've found workaround for this by moving window again after show_all().

--- guake.py.old	2011-03-01 12:11:12.561726719 +0100
+++ guake.py	2011-03-01 12:11:58.261334636 +0100
@@ -787,6 +787,9 @@
         self.window.resize(window_rect.width, window_rect.height)
         self.window.show_all()
 
+	# Ticket #236 workaround
+        self.window.move(window_rect.x, window_rect.y)
+
         try:
             # does it work in other gtk backends
             time = gtk.gdk.x11_get_server_time(self.window.window)
Note: See TracTickets for help on using tickets.