~ubuntu-branches/ubuntu/vivid/xscreensaver/vivid

« back to all changes in this revision

Viewing changes to driver/xscreensaver.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-06-09 22:10:56 UTC
  • mfrom: (1.1.12 upstream) (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110609221056-01ikv0cvs0g1hhxd
Tags: 5.14-1ubuntu1
* Merge with Debian unstable, remaining Ubuntu changes (LP: #795251):
  - debian/control:
    + Add Vcs-Bzr link
    + Add/Update replaces with Ubuntu versions
    + Update package descriptions to list Ubuntu screensavers
  - debian/rules:
    + Use /usr/share/backgrounds as image directory
    + Add translation domain to .desktop files
  - debian/source_xscreensaver.py: 
    + Add apport hook
  - debian/split-hacks.config:
    + Use different set of default hacks than Debian
  - debian/xscreensaver.dirs
    + Install /usr/share/backgrounds. By default, settings search in
      /usr/share/backgrounds and without it, it displays an error
  - debian/patches/53_XScreenSaver.ad.in.patch:
    + Use Ubuntu branding
  - debian/patches/60_sequential_glslideshow.patch:
    + Allow going through images sequentially rather than just at random in
      the GLSlideshow hack. 
* debian/patches/61_fix_tube_memleak.patch: dropped, applied upstream.
* debian/xscreensaver.desktop: drop file left over from previous merge.
* debian/control: drop Build-Depends on ubuntu-artwork. This was only pulled
  in to create /usr/share/backgrounds to use as a location for screensavers
  that look for images.
* debian/changelog: reinstate old changelog entries that were dropped in
  previous commits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1227
1227
        for (i = 0; i < si->nscreens; i++)
1228
1228
          spawn_screenhack (&si->screens[i]);
1229
1229
 
1230
 
      /* If we are blanking only, we might as well power down the monitor
1231
 
         right now, regardless of what the DPMS settings are. */
1232
 
      if (p->mode == BLANK_ONLY)
1233
 
        monitor_power_on (si, False);
 
1230
      /* If we are blanking only, optionally power down monitor right now.
 
1231
         To do this, we might need to temporarily re-enable DPMS first.
 
1232
       */
 
1233
      if (p->mode == BLANK_ONLY &&
 
1234
          p->dpms_enabled_p && 
 
1235
          p->dpms_quickoff_p)
 
1236
        {
 
1237
          sync_server_dpms_settings (si->dpy, True,
 
1238
                                     p->dpms_standby / 1000,
 
1239
                                     p->dpms_suspend / 1000,
 
1240
                                     (p->dpms_off
 
1241
                                      ? (p->dpms_off / 1000)
 
1242
                                      : 0xFFFF),
 
1243
                                     False);
 
1244
          monitor_power_on (si, False);
 
1245
        }
1234
1246
 
1235
1247
      /* Don't start the cycle timer in demo mode. */
1236
1248
      if (!si->demoing_p && p->cycle)