зеркало из https://github.com/mozilla/pjs.git
Bug 215951 - "X" mouse cursor in menus/popups when running gtk2 with
some window managers. r=blizzard, sr=bryner
This commit is contained in:
Родитель
96fc72f505
Коммит
dbfbd02646
|
@ -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: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче