00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "config_x11display.h"
00016 #include "x11GraphicsPipe.h"
00017 #include "x11GraphicsWindow.h"
00018 #include "graphicsPipeSelection.h"
00019 #include "dconfig.h"
00020 #include "pandaSystem.h"
00021
00022 Configure(config_x11display);
00023 NotifyCategoryDef(x11display, "display");
00024
00025 ConfigureFn(config_x11display) {
00026 init_libx11display();
00027 }
00028
00029 ConfigVariableString display_cfg
00030 ("display", "",
00031 PRC_DESC("Specify the X display string for the default display. If this "
00032 "is not specified, $DISPLAY is used."));
00033
00034 ConfigVariableBool x_error_abort
00035 ("x-error-abort", false,
00036 PRC_DESC("Set this true to trigger and abort (and a stack trace) on receipt "
00037 "of an error from the X window system. This can make it easier "
00038 "to discover where these errors are generated."));
00039
00040 ConfigVariableInt x_wheel_up_button
00041 ("x-wheel-up-button", 4,
00042 PRC_DESC("This is the mouse button index of the wheel_up event: which "
00043 "mouse button number does the system report when the mouse wheel "
00044 "is rolled one notch up?"));
00045
00046 ConfigVariableInt x_wheel_down_button
00047 ("x-wheel-down-button", 5,
00048 PRC_DESC("This is the mouse button index of the wheel_down event: which "
00049 "mouse button number does the system report when the mouse wheel "
00050 "is rolled one notch down?"));
00051
00052 ConfigVariableInt x_wheel_left_button
00053 ("x-wheel-left-button", 6,
00054 PRC_DESC("This is the mouse button index of the wheel_left event: which "
00055 "mouse button number does the system report when one scrolls "
00056 "to the left?"));
00057
00058 ConfigVariableInt x_wheel_right_button
00059 ("x-wheel-right-button", 7,
00060 PRC_DESC("This is the mouse button index of the wheel_right event: which "
00061 "mouse button number does the system report when one scrolls "
00062 "to the right?"));
00063
00064 ConfigVariableString x_wm_class_name
00065 ("x-wm-class-name", "",
00066 PRC_DESC("Specify the value to use for the res_name field of the window's "
00067 "WM_CLASS property. Has no effect when x-wm-class is not set."));
00068
00069 ConfigVariableString x_wm_class
00070 ("x-wm-class", "",
00071 PRC_DESC("Specify the value to use for the res_class field of the window's "
00072 "WM_CLASS property."));
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 void
00083 init_libx11display() {
00084 static bool initialized = false;
00085 if (initialized) {
00086 return;
00087 }
00088 initialized = true;
00089
00090 x11GraphicsPipe::init_type();
00091 x11GraphicsWindow::init_type();
00092 }