~titan-lien/ubuntu/saucy/totem/totem.dev

« back to all changes in this revision

Viewing changes to .pc/01_fake_keypresses.patch/lib/totem-scrsaver.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Sjoerd Simons, Michael Biebl, Josselin Mouette
  • Date: 2011-11-27 06:21:34 UTC
  • mfrom: (1.4.8) (5.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20111127062134-c3ikko9wdfn9m2av
Tags: 3.2.1-1
[ Sjoerd Simons ]
* New upstream release
* debian/control.in: Update build-depends
* debian/rules: Enable vala plugins
* debian/totem-plugins.install:
  - Add grilo and rotation plugins
  - Remove jamendo, thumbnail and tracker plugins

[ Michael Biebl ]
* debian/control.in:
  - Bump Depends on python-gobject to (>= 2.90.3).

[ Josselin Mouette ]
* Replace python-gobject dependencies by python-gi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
screensaver_init_dbus (TotemScrsaver *scr)
228
228
{
229
229
        g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
230
 
                                  G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
 
230
                                  G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES | G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
231
231
                                  NULL,
232
232
                                  GS_SERVICE,
233
233
                                  GS_PATH,
273
273
{
274
274
        if (scr->priv->disabled)
275
275
        {
 
276
                /* If the video window isn't focused, don't send out the
 
277
                 * events. Note that it probably breaks when popups are used
 
278
                 * but we can't do much about that... */
 
279
                if (scr->priv->window != NULL &&
 
280
                    gtk_window_has_toplevel_focus (scr->priv->window) == FALSE)
 
281
                        return;
 
282
 
276
283
                XLockDisplay (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
277
284
                XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), *scr->priv->keycode,
278
285
                                True, CurrentTime);