Comment #10 on issue 1444 by takao.fujiwara1: The candidate box would
exceed the screen bottom when I use multiple monitors
http://code.google.com/p/ibus/issues/detail?id=1444
OK, could you add the following debug codes and check the values?
--- /usr/share/ibus/ui/gtk/languagebar.py.orig
+++ /usr/share/ibus/ui/gtk/languagebar.py
@@ -245,9 +245,11 @@ class LanguageBar(gtk.Toolbar):
def set_position(self, x, y):
w, h = self.__screen.get_width(), self.__screen.get_height()
+ print "test1", w, h
if self.__screen.get_n_monitors() > 1:
rect = self.__screen.get_monitor_geometry(0)
w, h = rect.width, rect.height
+ print "test2", w, h
if x < 0 or y < 0:
x = w - 20
y = h - 40
@@ -257,7 +259,9 @@ class LanguageBar(gtk.Toolbar):
y = h - 40
self.__position = x, y
+ print "test3", self.__position
w, h = self.__toplevel.get_size()
+ print "test4", w, h
self.__toplevel.move(self.__position[0] - w, self.__position[1] - h)
def get_show(self):
% ps -ef | grep ibus
7300 /usr/bin/python /usr/share/ibus/ui/gtk/main.py
% kill 7300
% ps -ef | grep ibus
% env IBUS_PREFIX=/usr python /usr/share/ibus/ui/gtk/main.py
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en