Fix out of screen computation. Release 0.37
This commit is contained in:
parent
6c375a20f3
commit
e098bdf8eb
@ -1,4 +1,4 @@
|
||||
AC_INIT([Sugar],[0.36],[],[sugar])
|
||||
AC_INIT([Sugar],[0.37],[],[sugar])
|
||||
|
||||
AC_PREREQ([2.59])
|
||||
|
||||
|
@ -92,10 +92,10 @@ class MenuShell(gobject.GObject):
|
||||
if x + menu_w > gtk.gdk.screen_width():
|
||||
[x, y] = [left_x, left_y]
|
||||
|
||||
x = min(x, gtk.gdk.screen_width())
|
||||
x = min(x, gtk.gdk.screen_width() - menu_w)
|
||||
x = max(0, x)
|
||||
|
||||
y = min(y, gtk.gdk.screen_height())
|
||||
y = min(y, gtk.gdk.screen_height() - menu_h)
|
||||
y = max(0, y)
|
||||
|
||||
return [x, y]
|
||||
|
Loading…
Reference in New Issue
Block a user