From 26b8ec03bcc14086f9a5996d6a50c6d0c32f2f62 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Wed, 1 May 2002 22:41:45 +0000 Subject: [PATCH] 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. git-svn-id: svn://10.0.0.236/trunk@120470 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/gtk/nsWindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mozilla/widget/src/gtk/nsWindow.cpp b/mozilla/widget/src/gtk/nsWindow.cpp index a51739bb9f8..b7455a2c999 100644 --- a/mozilla/widget/src/gtk/nsWindow.cpp +++ b/mozilla/widget/src/gtk/nsWindow.cpp @@ -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: