Browse files

Fix the location for the highlight window when flashing.

git-svn-id: https://gtkparasite.googlecode.com/svn/trunk/gtkparasite@11 87a1d21d-fa52-0410-82b2-83ba5e1e7780
  • Loading branch information...
1 parent 5a982d3 commit 9b536b42a4ec796240605fe9f4bdccf8e58771a5 chipx86 committed with Jul 27, 2008
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/inspect-button.c
View
8 src/inspect-button.c
@@ -186,12 +186,8 @@ gtkparasite_flash_widget(ParasiteWindow *parasite, GtkWidget *widget)
parent_window = gtk_widget_get_parent_window(widget);
gdk_window_get_origin(parent_window, &x, &y);
-
- if (parent_window != widget->window)
- {
- x += widget->allocation.x;
- y += widget->allocation.y;
- }
+ x += widget->allocation.x;
+ y += widget->allocation.y;
width = widget->allocation.width;
height = widget->allocation.height;

0 comments on commit 9b536b4

Please sign in to comment.