~mniess/ubuntu/precise/compiz/fix-screenshot

« back to all changes in this revision

Viewing changes to src/screen.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-10-06 17:57:36 UTC
  • Revision ID: james.westby@ubuntu.com-20111006175736-ra3xnpa8tyy3z7vn
Tags: 1:0.9.6+bzr20110929-0ubuntu4
* debian/control:
  - don't suggest nvidia-glx, it's part of the old initial packaging
    and probably a bad hint on non nvidia system (LP: #844218)
* Cherry-pick upstream patches:
  - Windows should not automatically be focused when opened if the focus
    is on another application (LP: #748840)
  - Launcher - If a spread contains minimised windows, when the spread
    exits, the minimised windows momentarily appear on the desktop
    before disappearing (LP: #863328)
  - reproducible stacking bug in compiz (LP: #869316)
  - Click-dragging a window that's stacked above a fullscreen window will
    cause it to go underneath the fullscreen window (LP: #869919)
  - sometimes the keyboard input doesn't go to the apparently focussed
    dialog (LP: #869967)
  - Opening mumble can cause it to be stacked above the dash if you
    open the dash at the same time (LP: #865863)
  - Sometimes configure events are missed and windows move slow as a result
    (LP: #866752)
  - Workaround ubuntu desktop unity. Mouse at the left side doesn't reveal
    launcher (LP: #832150)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2055
2055
    for (i = 0; i < SCREEN_EDGE_NUM; i++)
2056
2056
    {
2057
2057
        if (screenEdge[i].id)
2058
 
            XMoveResizeWindow (dpy, screenEdge[i].id,
2059
 
                               geometry[i].xw * screen->width () +
2060
 
                               geometry[i].x0,
2061
 
                               geometry[i].yh * screen->height () +
2062
 
                               geometry[i].y0,
2063
 
                               geometry[i].ww * screen->width () +
2064
 
                               geometry[i].w0,
2065
 
                               geometry[i].hh * screen->height () +
2066
 
                               geometry[i].h0);
 
2058
        {
 
2059
            XWindowChanges xwc;
 
2060
            unsigned int   valueMask = CWX | CWY | CWWidth | CWHeight | CWStackMode;
 
2061
 
 
2062
            xwc.x = geometry[i].xw * screen->width () +
 
2063
                    geometry[i].x0;
 
2064
            xwc.y = geometry[i].yh * screen->height () +
 
2065
                    geometry[i].y0;
 
2066
            xwc.width = geometry[i].ww * screen->width () +
 
2067
                    geometry[i].w0;
 
2068
            xwc.height = geometry[i].hh * screen->height () +
 
2069
                    geometry[i].h0;
 
2070
 
 
2071
            xwc.stack_mode = Above;
 
2072
 
 
2073
            XConfigureWindow (dpy, screenEdge[i].id, valueMask, &xwc);
 
2074
        }
2067
2075
    }
2068
2076
}
2069
2077