| Index: chrome/browser/ui/gtk/browser_window_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
|
| index 5bf1daaff493e995bf6de2bc13e384c17fbe1f0f..159120708ce57c2d7b20f135da29b757c9361ec1 100644
|
| --- a/chrome/browser/ui/gtk/browser_window_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
|
| @@ -1986,8 +1986,11 @@ int BrowserWindowGtk::GetXPositionOfLocationIcon(GtkWidget* relative_to) {
|
| (location_icon->allocation.width + 1) / 2,
|
| 0, &x, NULL);
|
|
|
| - if (GTK_WIDGET_NO_WINDOW(relative_to))
|
| - x += relative_to->allocation.x;
|
| + if (!gtk_widget_get_has_window(relative_to)) {
|
| + GtkAllocation allocation;
|
| + gtk_widget_get_allocation(relative_to, &allocation);
|
| + x += allocation.x;
|
| + }
|
|
|
| return x;
|
| }
|
|
|