mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=808114 don't hide mContainer in toplevels, to keep a focus widget for grabs r=roc
--HG-- extra : transplant_source : %8F%FC%95%EEa0%F0%08%A7Yi%80%C0b%06%BE%3Dg%DEY
This commit is contained in:
parent
9619e49d3f
commit
b392d82c79
@ -3572,7 +3572,8 @@ nsWindow::Create(nsIWidget *aParent,
|
||||
gtk_widget_realize(container);
|
||||
|
||||
// make sure this is the focus widget in the container
|
||||
gtk_window_set_focus(GTK_WINDOW(mShell), container);
|
||||
gtk_widget_show(container);
|
||||
gtk_widget_grab_focus(container);
|
||||
|
||||
// the drawing window
|
||||
mGdkWindow = gtk_widget_get_window(mShell);
|
||||
@ -3906,7 +3907,6 @@ nsWindow::NativeShow(bool aAction)
|
||||
SetUserTimeAndStartupIDForActivatedWindow(mShell);
|
||||
}
|
||||
|
||||
gtk_widget_show(GTK_WIDGET(mContainer));
|
||||
gtk_widget_show(mShell);
|
||||
}
|
||||
else if (mContainer) {
|
||||
@ -3919,7 +3919,6 @@ nsWindow::NativeShow(bool aAction)
|
||||
else {
|
||||
if (mIsTopLevel) {
|
||||
gtk_widget_hide(GTK_WIDGET(mShell));
|
||||
gtk_widget_hide(GTK_WIDGET(mContainer));
|
||||
|
||||
ClearTransparencyBitmap(); // Release some resources
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user