comparison src/video/x11/SDL_x11events.c @ 3031:86918831452f

Don't complain when the GNOME screensaver isn't running (or available)
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jan 2009 08:28:17 +0000
parents f13ad181f5b2
children 62d4992e5a92
comparison
equal deleted inserted replaced
3030:f13ad181f5b2 3031:86918831452f
417 static pid_t screensaver_inhibit_pid; 417 static pid_t screensaver_inhibit_pid;
418 static void gnome_screensaver_disable() 418 static void gnome_screensaver_disable()
419 { 419 {
420 screensaver_inhibit_pid = fork(); 420 screensaver_inhibit_pid = fork();
421 if (screensaver_inhibit_pid == 0) { 421 if (screensaver_inhibit_pid == 0) {
422 //close(0); 422 close(0);
423 //close(1); 423 close(1);
424 //close(2); 424 close(2);
425 execl("/usr/bin/gnome-screensaver-command", 425 execl("/usr/bin/gnome-screensaver-command",
426 "gnome-screensaver-command", 426 "gnome-screensaver-command",
427 "--inhibit", 427 "--inhibit",
428 "--reason", 428 "--reason",
429 "GNOME screensaver doesn't respect MIT-SCREEN-SAVER", 429 "GNOME screensaver doesn't respect MIT-SCREEN-SAVER",