comparison src/video/x11/SDL_x11video.c @ 1206:aac47040c6d7

Patched to compile on gcc 2.95.3.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 19 Dec 2005 06:58:51 +0000
parents 2bd4cec0de63
children d2c6881935be
comparison
equal deleted inserted replaced
1205:2ab21d9a20da 1206:aac47040c6d7
263 } 263 }
264 264
265 /* Create auxiliary (toplevel) windows with the current visual */ 265 /* Create auxiliary (toplevel) windows with the current visual */
266 static void create_aux_windows(_THIS) 266 static void create_aux_windows(_THIS)
267 { 267 {
268 char * savedclassname = NULL;
268 XSetWindowAttributes xattr; 269 XSetWindowAttributes xattr;
269 XWMHints *hints; 270 XWMHints *hints;
270 XTextProperty titleprop, iconprop; 271 XTextProperty titleprop, iconprop;
271 int def_vis = (SDL_Visual == DefaultVisual(SDL_Display, SDL_Screen)); 272 int def_vis = (SDL_Visual == DefaultVisual(SDL_Display, SDL_Screen));
272 273
347 348
348 pXSelectInput(SDL_Display, WMwindow, 349 pXSelectInput(SDL_Display, WMwindow,
349 FocusChangeMask | KeyPressMask | KeyReleaseMask 350 FocusChangeMask | KeyPressMask | KeyReleaseMask
350 | PropertyChangeMask | StructureNotifyMask | KeymapStateMask); 351 | PropertyChangeMask | StructureNotifyMask | KeymapStateMask);
351 352
352 char * savedclassname = 0;
353 /* Set the class hints so we can get an icon (AfterStep) */ 353 /* Set the class hints so we can get an icon (AfterStep) */
354 { 354 {
355 XClassHint *classhints; 355 XClassHint *classhints;
356 classhints = pXAllocClassHint(); 356 classhints = pXAllocClassHint();
357 if(classhints != NULL) { 357 if(classhints != NULL) {