OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ratpoison/ratpoison-1.4.5-staticgravity.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. http://minimyth.googlecode.com/svn/trunk/gar-minimyth/script/X11/ratpoison/files/ratpoison-1.4.5-staticgravity.patch
  17. diff -Naur ratpoison-1.4.5-old/src/actions.c ratpoison-1.4.5-new/src/actions.c
  18. --- ratpoison-1.4.5-old/src/actions.c 2009-07-14 19:56:16.000000000 -0700
  19. +++ ratpoison-1.4.5-new/src/actions.c 2009-07-14 19:56:56.000000000 -0700
  20. @@ -1882,6 +1882,8 @@
  21. {
  22. int ret = -1;
  23. + if (!strcasecmp (data, "static") || !strcasecmp (data, "static") || !strcmp (data, "10"))
  24. + ret = StaticGravity;
  25. if (!strcasecmp (data, "northwest") || !strcasecmp (data, "nw") || !strcmp (data, "7"))
  26. ret = NorthWestGravity;
  27. if (!strcasecmp (data, "north") || !strcasecmp (data, "n") || !strcmp (data, "8"))
  28. diff -Naur ratpoison-1.4.5-old/src/manage.c ratpoison-1.4.5-new/src/manage.c
  29. --- ratpoison-1.4.5-old/src/manage.c 2009-07-14 19:56:16.000000000 -0700
  30. +++ ratpoison-1.4.5-new/src/manage.c 2009-07-14 19:56:56.000000000 -0700
  31. @@ -541,6 +541,9 @@
  32. case SouthEastGravity:
  33. win->x = frame->x + frame->width - win->width - win->border;
  34. break;
  35. + case StaticGravity:
  36. + win->x = frame->x + win->x;
  37. + break;
  38. }
  39. /* Y coord. */
  40. @@ -561,6 +564,9 @@
  41. case SouthWestGravity:
  42. win->y = frame->y + frame->height - win->height - win->border;
  43. break;
  44. + case StaticGravity:
  45. + win->y = frame->y + win->y;
  46. + break;
  47. }
  48. }