Skip to content

Commit

Permalink
pluma-notebook: avoid new file with double click in vertical scrollbar
Browse files Browse the repository at this point in the history
Fixes #333
  • Loading branch information
sc0w committed May 31, 2018
1 parent 3742ba4 commit 924beb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pluma/pluma-notebook.c
Expand Up @@ -650,8 +650,6 @@ button_press_cb (PlumaNotebook *notebook,
(event->type == GDK_BUTTON_PRESS) &&
(tab_clicked >= 0))
{
leftdown = TRUE;

notebook->priv->x_start = event->x_root;
notebook->priv->y_start = event->y_root;

Expand Down Expand Up @@ -700,11 +698,13 @@ button_press_cb (PlumaNotebook *notebook,
else if (event->type == GDK_2BUTTON_PRESS)
{
if ((tab1click != gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook))) ||
(tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)))
(tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)) || (!leftdown))
return TRUE;

newfile = FALSE;
}

leftdown = TRUE;
}

return FALSE;
Expand Down

0 comments on commit 924beb5

Please sign in to comment.