From dbfbd026464ff9edb463cd9d702622e52057f017 Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Thu, 11 Sep 2003 02:51:21 +0000 Subject: [PATCH] Bug 215951 - "X" mouse cursor in menus/popups when running gtk2 with some window managers. r=blizzard, sr=bryner --- widget/src/gtk2/nsWindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/widget/src/gtk2/nsWindow.cpp b/widget/src/gtk2/nsWindow.cpp index 6f04c1e9a17..5c9040a1b67 100644 --- a/widget/src/gtk2/nsWindow.cpp +++ b/widget/src/gtk2/nsWindow.cpp @@ -2108,6 +2108,17 @@ nsWindow::NativeCreate(nsIWidget *aParent, // and the drawing area mDrawingarea = moz_drawingarea_new(nsnull, mContainer); + + if (mWindowType == eWindowType_popup) { + // 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_child: {