Make sure to set a cursor for our popup windows, since GTK doesn't do this automatically for us (and we don't want it to always inherit the root window cursor). Bug 133387, r=pavlov, sr=blizzard.

This commit is contained in:
bryner%netscape.com 2002-05-01 22:41:45 +00:00
Родитель b256680996
Коммит 4dc594aa75
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1899,6 +1899,15 @@ NS_METHOD nsWindow::CreateNative(GtkObject *parentWidget)
// set the back pixmap to None so that we don't get a flash of
// black
gdk_window_set_back_pixmap(mShell->window, NULL, FALSE);
// gdk does not automatically set the cursor for "temporary"
// windows, which are what gtk uses for popups.
mCursor = eCursor_wait; // force SetCursor to actually set the cursor,
// even though our internal state indicates
// that we already have the standard cursor.
SetCursor(eCursor_standard);
break;
case eWindowType_toplevel: