Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate double click to open tabs #2010

Merged
merged 1 commit into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions guake/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ def on_button_press(self, target, event, user_data):
except AttributeError:
# Gtk 3.18 fallback ("'Menu' object has no attribute 'popup_at_pointer'")
menu.popup(None, None, None, None, event.button, event.time)
elif (
event.type == Gdk.EventType.DOUBLE_BUTTON_PRESS
and event.button == 1
and event.window.get_height() < 60
):
# event.window.get_height() reports the height of the clicked frame
self.new_page_with_focus()

return False

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
release_summary: >
Reinstated double clicking to open new tabs

features:
- |
- Double click to open a new tab, without side effects in mouse
enabled terminal apps