Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Nru orig/src/privatewindow.h patch/src/privatewindow.h
- --- orig/src/privatewindow.h 2013-07-19 04:15:01 +0000
- +++ patch/src/privatewindow.h 2014-01-13 15:53:23 +0000
- @@ -401,7 +401,6 @@
- bool shaded;
- bool hidden;
- bool grabbed;
- - bool alreadyDecorated;
- unsigned int desktop;
- diff -Nru orig/src/window.cpp patch/src/window.cpp
- --- orig/src/window.cpp 2013-10-30 20:31:20 +0000
- +++ patch/src/window.cpp 2014-01-13 15:53:23 +0000
- @@ -6341,7 +6341,6 @@
- shaded (false),
- hidden (false),
- grabbed (false),
- - alreadyDecorated (false),
- desktop (0),
- @@ -6586,20 +6585,6 @@
- compiz::window::extents::shift (priv->border,
- priv->sizeHints.win_gravity);
- - CompSize sizeDelta;
- -
- - /* We don't want to change the size of the window the first time we
- - * decorate it, but we do thereafter */
- - if (priv->alreadyDecorated)
- - {
- - sizeDelta.setWidth (-((b->left + b->right) -
- - (priv->border.left + priv->border.right)));
- - sizeDelta.setHeight (-((b->top + b->bottom) -
- - (priv->border.top + priv->border.bottom)));
- - }
- - else
- - priv->alreadyDecorated = true;
- -
- priv->serverInput = *i;
- priv->border = *b;
- @@ -6608,8 +6593,8 @@
- xwc.x = movement.x () + priv->serverGeometry.x ();
- xwc.y = movement.y () + priv->serverGeometry.y ();
- - xwc.width = sizeDelta.width () + priv->serverGeometry.width ();
- - xwc.height = sizeDelta.height () + priv->serverGeometry.height ();
- + xwc.width = priv->serverGeometry.width ();
- + xwc.height = priv->serverGeometry.height ();
- configureXWindow (CWX | CWY | CWWidth | CWHeight, &xwc);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement