diff --git a/widget/src/gtk2/gtk2drawing.c b/widget/src/gtk2/gtk2drawing.c index 8dd9dc1faa0..628e15a1a59 100644 --- a/widget/src/gtk2/gtk2drawing.c +++ b/widget/src/gtk2/gtk2drawing.c @@ -990,7 +990,8 @@ moz_gtk_button_paint(GdkDrawable* drawable, GdkRectangle* rect, } if (relief != GTK_RELIEF_NONE || state->depressed || - button_state == GTK_STATE_PRELIGHT) { + (button_state != GTK_STATE_NORMAL && + button_state != GTK_STATE_INSENSITIVE)) { TSOffsetStyleGCs(style, x, y); /* the following line can trigger an assertion (Crux theme) file ../../gdk/gdkwindow.c: line 1846 (gdk_window_clear_area):