Advertisement
Twilypastes

openbox-size-hint-patch-guide

Jan 31st, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.09 KB | None | 0 0
  1. #
  2. # This is an guide to remove size hints on terminal
  3. # and forced aspect ratio on mpv/mplayer in OpenBox.
  4. #
  5.  
  6. # Clone source code into ~/openbox.git
  7. git clone https://github.com/danakj/openbox ~/openbox.git
  8.  
  9. # Goto the directory
  10. cd ~/openbox.git
  11.  
  12. # Edit file 'client.c' with your preferred text editor
  13. $ vim ./openbox/client.c
  14.  
  15. # In this file goto Line 1742 or search for 'PAspect'
  16. # Make the following changes to the file then save and exit
  17. #
  18. #   -1742:  if (size.flags & PAspect) {
  19. #   +1742:  /*if (size.flags & PAspect) {
  20. #
  21. #   -1749:  }
  22. #   +1749:  }*/
  23. #
  24. #   -1760:  if (size.flags & PResizeInc && size.width_inc && size.height_inc)
  25. #   +1760:  /*if (size.flags & PResizeInc && size.width_inc && size.height_inc)
  26. #
  27. #   -1761:     SIZE_SET(self->size_inc, size.width_inc, size.height_inc);
  28. #   +1761:     SIZE_SET(self->size_inc, size.width_inc, size.height_inc);*/
  29. #
  30.  
  31. # Install with the following commands
  32. # (See 'README.GIT' for more information on building)
  33. $ ./bootstrap
  34. $ ./configure
  35. make
  36. sudo make install
  37.  
  38. # Restart OpenBox or test with another session
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement