70
static int set_width(int d, void *param)
72
/* Minimal sanity check. */
77
ui_resources.window_width = d;
81
static int set_height(int d, void *param)
83
/* Minimal sanity check. */
88
ui_resources.window_height = d;
77
static int set_width0(int d, void *param)
79
/* Minimal sanity check. */
84
ui_resources.window0_width = d;
88
static int set_height0(int d, void *param)
90
/* Minimal sanity check. */
95
ui_resources.window0_height = d;
99
static int set_xpos0(int d, void *param)
101
ui_resources.window0_xpos = d;
105
static int set_ypos0(int d, void *param)
107
ui_resources.window0_ypos = d;
111
static int set_width1(int d, void *param)
113
/* Minimal sanity check. */
118
ui_resources.window1_width = d;
122
static int set_height1(int d, void *param)
124
/* Minimal sanity check. */
129
ui_resources.window1_height = d;
133
static int set_xpos1(int d, void *param)
135
ui_resources.window1_xpos = d;
139
static int set_ypos1(int d, void *param)
141
ui_resources.window1_ypos = d;
191
FIXME: WindowXXX should be per window (for x128)
137
193
static const resource_int_t resources_int[] = {
138
194
{ "PrivateColormap", 0, RES_EVENT_NO, NULL,
139
195
&ui_resources.use_private_colormap, set_use_private_colormap, NULL },
143
199
&ui_resources.confirm_on_exit, set_confirm_on_exit, NULL },
144
200
{ "DisplayDepth", 0, RES_EVENT_NO, NULL,
145
201
&ui_resources.depth, set_depth, NULL },
146
{ "WindowWidth", 0, RES_EVENT_NO, NULL,
147
&ui_resources.window_width, set_width, NULL },
148
{ "WindowHeight", 0, RES_EVENT_NO, NULL,
149
&ui_resources.window_height, set_height, NULL },
202
{ "Window0Width", 0, RES_EVENT_NO, NULL,
203
&ui_resources.window0_width, set_width0, NULL },
204
{ "Window0Height", 0, RES_EVENT_NO, NULL,
205
&ui_resources.window0_height, set_height0, NULL },
206
{ "Window0Xpos", -1, RES_EVENT_NO, NULL,
207
&ui_resources.window0_xpos, set_xpos0, NULL },
208
{ "Window0Ypos", -1, RES_EVENT_NO, NULL,
209
&ui_resources.window0_ypos, set_ypos0, NULL },
150
210
#if defined (USE_XF86_EXTENSIONS) && (defined(USE_XF86_VIDMODE_EXT) || defined (HAVE_XRANDR))
151
211
{ "UseFullscreen", 0, RES_EVENT_NO, NULL,
152
212
&ui_resources.fs_enabled_pending, fullscreen_set_fs, NULL },
217
static const resource_int_t extra_resources_int[] = {
218
{ "Window1Width", 0, RES_EVENT_NO, NULL,
219
&ui_resources.window1_width, set_width1, NULL },
220
{ "Window1Height", 0, RES_EVENT_NO, NULL,
221
&ui_resources.window1_height, set_height1, NULL },
222
{ "Window1Xpos", -1, RES_EVENT_NO, NULL,
223
&ui_resources.window1_xpos, set_xpos1, NULL },
224
{ "Window1Ypos", -1, RES_EVENT_NO, NULL,
225
&ui_resources.window1_ypos, set_ypos1, NULL },
157
229
int ui_resources_init(void)
159
231
ui_resources_initialized = 1;