~compiz-team/compiz-core/0.9.7

« back to all changes in this revision

Viewing changes to plugins/place/src/place.cpp

  • Committer: Tarmac
  • Author(s): Chris Townsend
  • Date: 2013-04-25 16:06:04 UTC
  • mfrom: (3134.1.1 compiz-core)
  • Revision ID: tarmac-20130425160604-htp720605yu4rtyq
Backport of lp:compiz/0.9.9 revno. 3646 to fix bug #763148. Also had to backport the code in the PlaceWindow destructor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
PlaceScreen::handleEvent (XEvent *event)
201
201
{
202
202
    if (event->type == ConfigureNotify &&
203
 
        event->xconfigure.window == screen->root ())
 
203
        event->xconfigure.window == screen->root () &&
 
204
        (event->xconfigure.width != screen->width () ||
 
205
         event->xconfigure.height != screen->height ()))
204
206
    {
205
207
        mPrevSize.setWidth (screen->width ());
206
208
        mPrevSize.setHeight (screen->height ());
300
302
 
301
303
PlaceWindow::~PlaceWindow ()
302
304
{
 
305
    if (!ps->mStrutWindows.empty() && window->struts())
 
306
    {
 
307
        ps->mStrutWindows.remove(window);
 
308
        if (ps->mStrutWindows.empty())
 
309
        {
 
310
            ps->doHandleScreenSizeChange(screen->width(), screen->height());
 
311
        }
 
312
    }
303
313
}
304
314
 
305
315
bool