~ubuntu-dev/ubuntu/lucid/mutter/lucid-201002110959

« back to all changes in this revision

Viewing changes to src/compositor/mutter-plugin-manager.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-09-05 16:23:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090905162300-uh014j826cs7xe76
Tags: 2.27.4-0ubuntu1
* New upstream release
* add debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 */
23
23
 
24
24
#include "config.h"
 
25
#include "compositor-private.h"
25
26
#include "mutter-plugin-manager.h"
26
27
#include "prefs.h"
27
28
#include "errors.h"
28
29
#include "workspace.h"
29
30
#include "mutter-module.h"
 
31
#include "../core/window-private.h"
30
32
 
31
33
#include <string.h>
32
34
 
339
341
   * plugins to unload? We are probably not going to have large numbers of
340
342
   * plugins loaded at the same time, so it might not be worth it.
341
343
   */
 
344
 
 
345
  /* Prevent stale grabs on unloaded plugins */
 
346
  mutter_check_end_modal (plugin_mgr->screen);
 
347
 
342
348
  mutter_plugin_manager_unload (plugin_mgr);
343
349
  return mutter_plugin_manager_load (plugin_mgr);
344
350
}
401
407
{
402
408
  GList *l = plugin_mgr->plugins;
403
409
  gboolean retval = FALSE;
 
410
  MetaDisplay *display  = meta_screen_get_display (plugin_mgr->screen);
 
411
 
 
412
  if (display->display_opening)
 
413
    return FALSE;
404
414
 
405
415
  while (l)
406
416
    {
476
486
{
477
487
  GList *l = plugin_mgr->plugins;
478
488
  gboolean retval = FALSE;
 
489
  MetaDisplay *display  = meta_screen_get_display (plugin_mgr->screen);
 
490
 
 
491
  if (display->display_opening)
 
492
    return FALSE;
479
493
 
480
494
  while (l)
481
495
    {
545
559
{
546
560
  GList *l = plugin_mgr->plugins;
547
561
  gboolean retval = FALSE;
 
562
  MetaDisplay *display  = meta_screen_get_display (plugin_mgr->screen);
 
563
 
 
564
  if (display->display_opening)
 
565
    return FALSE;
548
566
 
549
567
  while (l)
550
568
    {