Advertisement
Guest User

Untitled

a guest
Feb 26th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. diff -Nru orig/src/privatewindow.h patch/src/privatewindow.h
  2. --- orig/src/privatewindow.h 2013-07-19 04:15:01 +0000
  3. +++ patch/src/privatewindow.h 2014-01-13 15:53:23 +0000
  4. @@ -401,7 +401,6 @@
  5. bool shaded;
  6. bool hidden;
  7. bool grabbed;
  8. - bool alreadyDecorated;
  9.  
  10. unsigned int desktop;
  11.  
  12.  
  13. diff -Nru orig/src/window.cpp patch/src/window.cpp
  14. --- orig/src/window.cpp 2013-10-30 20:31:20 +0000
  15. +++ patch/src/window.cpp 2014-01-13 15:53:23 +0000
  16. @@ -6341,7 +6341,6 @@
  17. shaded (false),
  18. hidden (false),
  19. grabbed (false),
  20. - alreadyDecorated (false),
  21.  
  22. desktop (0),
  23.  
  24. @@ -6586,20 +6585,6 @@
  25. compiz::window::extents::shift (priv->border,
  26. priv->sizeHints.win_gravity);
  27.  
  28. - CompSize sizeDelta;
  29. -
  30. - /* We don't want to change the size of the window the first time we
  31. - * decorate it, but we do thereafter */
  32. - if (priv->alreadyDecorated)
  33. - {
  34. - sizeDelta.setWidth (-((b->left + b->right) -
  35. - (priv->border.left + priv->border.right)));
  36. - sizeDelta.setHeight (-((b->top + b->bottom) -
  37. - (priv->border.top + priv->border.bottom)));
  38. - }
  39. - else
  40. - priv->alreadyDecorated = true;
  41. -
  42. priv->serverInput = *i;
  43. priv->border = *b;
  44.  
  45. @@ -6608,8 +6593,8 @@
  46.  
  47. xwc.x = movement.x () + priv->serverGeometry.x ();
  48. xwc.y = movement.y () + priv->serverGeometry.y ();
  49. - xwc.width = sizeDelta.width () + priv->serverGeometry.width ();
  50. - xwc.height = sizeDelta.height () + priv->serverGeometry.height ();
  51. + xwc.width = priv->serverGeometry.width ();
  52. + xwc.height = priv->serverGeometry.height ();
  53.  
  54. configureXWindow (CWX | CWY | CWWidth | CWHeight, &xwc);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement