aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-08-03 01:25:25 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-08-03 01:25:25 +0800
commitce63434f4b47c89c4e9babd2c63a2e998f188d3f (patch)
treec287e6190fc8740073ad4273d65d6599f05688d4 /src
parentd55879c531844be5e852d367c037e84e886d445a (diff)
downloadgsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.tar
gsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.tar.gz
gsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.tar.bz2
gsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.tar.lz
gsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.tar.xz
gsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.tar.zst
gsoc2013-epiphany-ce63434f4b47c89c4e9babd2c63a2e998f188d3f.zip
Work around for a gtk issue. Do not assert if a click outside the notebook
2003-08-02 Marco Pesenti Gritti <marco@it.gnome.org> * src/ephy-notebook.c: (find_tab_num_at_pos), (button_press_cb): Work around for a gtk issue. Do not assert if a click outside the notebook is reported in button_press, just ignore.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 7ce05b8ca..53265ecb6 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -238,7 +238,12 @@ find_tab_num_at_pos (EphyNotebook *notebook, gint abs_x, gint abs_y)
return AFTER_ALL_TABS;
}
- g_assert (is_in_notebook_window(notebook, abs_x, abs_y));
+ /* For some reason unfullscreen + quick click can
+ cause a wrong click event to be reported to the tab */
+ if (!is_in_notebook_window(notebook, abs_x, abs_y))
+ {
+ return NOT_IN_APP_WINDOWS;
+ }
while ((page = gtk_notebook_get_nth_page (nb, page_num)))
{
@@ -549,7 +554,7 @@ button_press_cb (EphyNotebook *notebook,
}
if ((event->button == 1) && (event->type == GDK_BUTTON_PRESS)
- && (tab_clicked != -1))
+ && (tab_clicked >= 0))
{
notebook->priv->x_start = event->x_root;
notebook->priv->y_start = event->y_root;