Skip to content

Commit dc71f60

Browse files
committed
Fix mouse scrolling on Ubuntu
This fixes pull request Guake#12 and Trac Guake#237.
1 parent 8ca2b5c commit dc71f60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/guake

+6
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,12 @@ class Guake(SimpleGladeApp):
12071207
box.terminal.connect('drag-data-received',
12081208
self.on_drag_data_received,
12091209
box)
1210+
1211+
#-- Ubuntu has a patch to libvte which disables mouse scrolling in apps
1212+
#-- like vim and less by default. If this is the case, enable it back.
1213+
if hasattr(box.terminal, "set_alternate_screen_scroll"):
1214+
box.terminal.set_alternate_screen_scroll(True)
1215+
12101216
box.show()
12111217

12121218
self.term_list.append(box.terminal)

0 commit comments

Comments
 (0)