diff --git a/mozilla/widget/src/xlib/nsAppShell.cpp b/mozilla/widget/src/xlib/nsAppShell.cpp index cffc84979b7..dce3628fae2 100644 --- a/mozilla/widget/src/xlib/nsAppShell.cpp +++ b/mozilla/widget/src/xlib/nsAppShell.cpp @@ -131,12 +131,12 @@ NS_METHOD nsAppShell::Create(int* argc, char ** argv) exit(1); } _Xdebug = 1; - gScreenNum = DefaultScreen(gDisplay); gScreen = DefaultScreenOfDisplay(gDisplay); // init the rgb layer. this will provide // the visual information for us. xlib_rgb_init(gDisplay, gScreen); gVisual = xlib_rgb_get_visual(); + // set the static vars for this class so we can find our // way around... vis_template.visualid = XVisualIDFromVisual(gVisual); diff --git a/mozilla/widget/src/xlib/nsWidget.h b/mozilla/widget/src/xlib/nsWidget.h index 9d60555ae81..ba214ab0d11 100644 --- a/mozilla/widget/src/xlib/nsWidget.h +++ b/mozilla/widget/src/xlib/nsWidget.h @@ -141,7 +141,6 @@ protected: extern Display *gDisplay; extern Screen *gScreen; -extern int gScreenNum; extern int gDepth; extern Visual *gVisual; extern XVisualInfo *gVisualInfo;