Bugzilla – Attachment 56721 Details for
Bug 127499
Zapping does not block the screensaver
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Patch for Zapping to add screensaver blocking for gnome-screensaver
zapping-gnomescreensaver.patch (text/plain), 1004 bytes, created by
Jens Siebert
on 2005-11-08 19:46:02 UTC
(
hide
)
Description:
Patch for Zapping to add screensaver blocking for gnome-screensaver
Filename:
MIME Type:
Creator:
Jens Siebert
Created:
2005-11-08 19:46:02 UTC
Size:
1004 bytes
patch
obsolete
>--- zapping-0.9.6/src/x11stuff.c 2005-02-14 16:11:24.000000000 +0100 >+++ zapping-0.9.6gs/src/x11stuff.c 2005-11-08 14:02:51.000000000 +0100 >@@ -1338,6 +1338,7 @@ static Atom _XA_DEACTIVATE; > static gboolean screensaver_enabled; > static unsigned int screensaver_level; > static gboolean kscreensaver; >+static gboolean gnomescreensaver; > static gboolean dpms_usable; > static guint screensaver_timeout_id; > >@@ -1450,6 +1451,11 @@ screensaver_timeout (gpointer unused _ > > } > >+ if (gnomescreensaver) >+ { >+ system("gnome-screensaver-command --poke >/dev/null 2>&1"); >+ } >+ > return TRUE; /* call again */ > } > >@@ -1622,6 +1628,12 @@ x11_screensaver_init (void) > > printv ("KScreensaver %spresent\n", kscreensaver ? "" : "not "); > #endif >+ >+ gnomescreensaver = >+ (0 == system ("( gnome-screensaver-command --query 2>/dev/null" >+ "| grep inactive ) >/dev/null 2>&1")); >+ >+ printv ("gnome-screensaver %spresent\n", gnomescreensaver ? "" : "not "); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 127499
: 56721 |
81686