~ubuntu-branches/ubuntu/raring/metacity/raring

« back to all changes in this revision

Viewing changes to src/core/workspace.c

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-03-19 13:54:48 UTC
  • Revision ID: package-import@ubuntu.com-20120319135448-wbo1nc6pkyxe1eo3
Tags: 1:2.34.1-1ubuntu9
* debian/patches/104_workarea_union.patch:
  - Ensure each screen_region generated by
    meta_rectangle_get_minimal_spanning_set_for_region is not outside
    the xinerama screens

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
      for (temp = workspace->screen_region; temp; temp = temp->next)
648
648
      {
649
649
        MetaRectangle *rect = temp->data;
650
 
        meta_rectangle_union(rect, &work_area, &work_area);
 
650
 
 
651
        /* Ensure each screen_region is not outside the xinerama screens. */
 
652
        for (i = 0; i < workspace->screen->n_xinerama_infos; i++)
 
653
          {
 
654
            if (meta_rectangle_overlap(rect, &workspace->screen->xinerama_infos[i].rect))
 
655
              {
 
656
                meta_rectangle_union(rect, &work_area, &work_area);
 
657
                break;
 
658
              }
 
659
          }
651
660
      }
652
661
    }
653
662