src/video/x11/SDL_x11events.c
changeset 3031 86918831452f
parent 3030 f13ad181f5b2
child 3040 62d4992e5a92
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",