mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
fix for bug 17936 making windows smaller after they have become visible r=waterson
This commit is contained in:
parent
73a40c9a94
commit
23101c395a
@ -396,6 +396,9 @@ NS_IMETHODIMP nsWidget::CaptureRollupEvents(nsIRollupListener * aListener, PRBoo
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef DEBUG_pavlov
|
||||
int ret =
|
||||
#endif
|
||||
gdk_pointer_grab (GTK_LAYOUT(mWidget)->bin_window, PR_TRUE,(GdkEventMask)
|
||||
(GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
|
||||
GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK |
|
||||
|
@ -1963,6 +1963,9 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
||||
// toplevel window? if so, we should resize it as well.
|
||||
if (mIsToplevel && mShell)
|
||||
{
|
||||
if (GTK_WIDGET_VISIBLE(mShell) && GTK_WIDGET_REALIZED(mShell)) // set_default_size won't make a window smaller after it is visible
|
||||
gdk_window_resize(mShell->window, aWidth, aHeight);
|
||||
|
||||
gtk_window_set_default_size(GTK_WINDOW(mShell), aWidth, aHeight);
|
||||
}
|
||||
gdk_superwin_resize(mSuperWin, aWidth, aHeight);
|
||||
|
Loading…
Reference in New Issue
Block a user