Apply modified patch from Juan Manuel Santos to improve the directional navigation by not relying on bogus assumptions about the behaviour of get_cusor_position
This commit is contained in:
parent
70ab3b0f71
commit
785ed8b591
|
@ -623,9 +623,10 @@ class Window(Container, gtk.Window):
|
|||
|
||||
if len(winners) > 1:
|
||||
# Break an n-way tie using the cursor position
|
||||
cursor_x, cursor_y = terminal.get_cursor_position()
|
||||
cursor_x = cursor_x + allocation.x
|
||||
cursor_y = cursor_y + allocation.y
|
||||
term_alloc = terminal.allocation
|
||||
cursor_x = term_alloc.x + term_alloc.width / 2
|
||||
cursor_y = term_alloc.y + term_alloc.height / 2
|
||||
|
||||
for term in winners:
|
||||
rect = layout[term]
|
||||
if util.get_nav_tiebreak(direction, cursor_x, cursor_y,
|
||||
|
|
Loading…
Reference in New Issue