diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 01:13:30 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-18 01:13:30 +0000 |
commit | ee64fc06a4c0730cbea8a855c8efd8ca771810d8 (patch) | |
tree | 7b1f1670833a54e6ac5dbd7b03f893fd482a76ea /views | |
parent | 32b7454c2705bd4071e35d2a636ed15b54c5863d (diff) | |
download | chromium_src-ee64fc06a4c0730cbea8a855c8efd8ca771810d8.zip chromium_src-ee64fc06a4c0730cbea8a855c8efd8ca771810d8.tar.gz chromium_src-ee64fc06a4c0730cbea8a855c8efd8ca771810d8.tar.bz2 |
Synchronize window resize in MoveMouseToCenterAndPress on linux.
I tried to synchronize it in Show methods (in test mode),
but it didn't work because next task is posted before show and running message loop executes the task before the window gets resized. For now, I decided to put the code in ui_controls. Let me know if you have suggestion where to put this code.
BUG=82219
TEST=bookmark test and menu_item_view tests are no longer flaky without gtk hack.
Review URL: http://codereview.chromium.org/6982031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/widget_gtk.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 164c692..0e693d8 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -726,6 +726,8 @@ void WidgetGtk::InitNativeWidget(const Widget::InitParams& params) { if (parent) SetBounds(params.bounds); } else { + gtk_widget_add_events(widget_, + GDK_STRUCTURE_MASK); if (params.bounds.width() > 0 && params.bounds.height() > 0) gtk_window_resize(GTK_WINDOW(widget_), params.bounds.width(), params.bounds.height()); |