#207 gravity winoption

open
nobody
None
5
2008-11-26
2008-11-26
Bert Wesarg
No

This is a preliminary patch to provide a new winoption for setting the gravity. It's barely tested and I'm actually unsude if its work. So I'm looking for comments on this. Thanks.

Discussion

  • Bert Wesarg

    Bert Wesarg - 2008-11-26

    for icewm-1.2

     
  • Eduard Bloch

    Eduard Bloch - 2008-11-26

    Hello,

    would you care to explain what Gravity actually is? Maybe using wording suitable for documentation?

     
  • Bert Wesarg

    Bert Wesarg - 2008-11-26

    I have not invented 'gravity'. Its long in X. If I understand it right (and I hope so) the normal gravity is NorthWest, i.e. top left corner. A new window will be placed there. Resize and Move requests will be made, so that the top/left corner of the window will stay at this position. If its NorthEast the top/right corner would stay at the same position.

    I would like to have this, because my editor is in the top/right corner. and sometimes if I open a file with thousends of lines, the editor widens the window, so that all line numbers fit. With the correct gravity the window would move slightly to the left also, so that nothing is hidden on the right side.

     
  • Bert Wesarg

    Bert Wesarg - 2008-11-26

    You can test this with a tool from the metacity package: src/wm-tester/test-gravity

     
  • Bert Wesarg

    Bert Wesarg - 2008-11-28

    I have learned a little more: the window position is not effected by the gravity only resize requests.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks