mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
bug 90415
Account setup wizard: XIM status window doesn't show when it's turned on r/sr=blizzard
This commit is contained in:
parent
6da77f6bcc
commit
ccd9c6510b
@ -511,13 +511,17 @@ void
|
||||
nsIMEStatus::setParentWindow(nsWindow *aWindow) {
|
||||
GdkWindow *gdkWindow = (GdkWindow*)aWindow->GetNativeData(NS_NATIVE_WINDOW);
|
||||
GdkWindow *newParentGdk = gdk_window_get_toplevel(gdkWindow);
|
||||
|
||||
// mAttachedWindow is set to 0 when target window is destroyed
|
||||
// set aWindow to this even if newParentGdk == mParent case
|
||||
// keep focused (target) Window as mAttachedWindow
|
||||
mAttachedWindow = aWindow;
|
||||
|
||||
if (newParentGdk != mParent) {
|
||||
hide();
|
||||
if (mParent) {
|
||||
UnregisterClientFilter(GDK_WINDOW_XWINDOW(mParent));
|
||||
}
|
||||
// keep focused Window as mAttachedWindow
|
||||
mAttachedWindow = aWindow;
|
||||
mParent = newParentGdk;
|
||||
if (mIMStatusWindow) {
|
||||
Display *display = GDK_DISPLAY();
|
||||
|
Loading…
Reference in New Issue
Block a user