-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fix #294: Rapidly closing tabs with three-finger/middle click button re-opens closed tabs #295
Conversation
@andreasfelix Definitely better than before! It still happens when I double-wheelclick on the border between two tabs, though. Do you think this is can/should be fixed within the same PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solves the issue in most cases.
Unfortunately I think this is a different Issue. I have highlighted the size of the As one can see, the size of the I think this is related to the Maybe it could be solved by changing |
I have a other question: What is the rationale behind the Otherwise it would be simpler to just remove the if (e.button == 2 && close_button_is_visible ()) { // <-- remove close_button_is_visible ()
e.state &= MODIFIER_MASK;
if (e.state == 0) {
this.closed ();
} else if (e.state == Gdk.ModifierType.SHIFT_MASK) {
this.close_others ();
}
} |
I have no clue. git blame leads to this commit: 13f290a The referenced launchpad issue is about hiding the (x) buttons until you hover the tab, i.e. in the first commit where buttons weren't permanently visible. I would guess that it was added out of unspecific defensiveness. Have you tried removing it? Does anything break? Less bugs and less code sounds good to me :) |
I have completely removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ck button re-opens closed tabs (elementary#295) * Fix Dynamic notebook: Rapidly closing tabs with three-finger/middle click button re-opens closed tabs * Remove close_button_is_visible method
Fix for #294 and elementary/code#485: Dynamic notebook: Rapidly closing tabs with three-finger/middle
click button re-opens closed tabs
Changing
child_revealed
toreveal_child
to make tab close-able by middle/three-finger click duringreveal animation. This prevents the creation of new tabs when trying to rapidly close multiple tabs.
Before
After