<div dir="ltr">On Wed, Jun 12, 2013 at 6:35 PM, Wujek Srujek <span dir="ltr"><<a href="mailto:wujek.srujek@gmail.com" target="_blank">wujek.srujek@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi. I have the following keybindings in my rc.xml:</div><div><br></div><div><keybind key="W-Escape" chroot="true"></div>

<div>      <keybind key="Right"></div>
<div>        <action name="ResizeRelative"></div><div>          <right>50</right></div><div>        </action></div><div>      </keybind></div><div>      <!-- and similar for Left, Up and Down --></div>


<div></keybind><br></div><div><br></div><div>I can't wrap my head around how this works. What is the unit that I specify? Is it pixels or % or maybe something else? At my computer a small window grows by 400 pixels in width:</div>


<div><br></div><div># the window is currently centralized</div><div><div>$ wmctrl -lxG | tail -n 1</div><div>0x024012a3  0 393  276  655  377  lxterminal.Lxterminal</div><div># after ResizeRelative +50 right</div>
<div><div>$ wmctrl -lxG | tail -n 1</div><div>0x024012a3  0 393  276  1055 377  lxterminal.Lxterminalt</div><div><br></div><div># centralize again</div><div><div>$ wmctrl -lxG | tail -n 1</div><div>
0x0240279c  0 393  276  655  377  lxterminal.Lxterminal</div><div># after ResizeRelative +50 left</div><div><div>$ wmctrl -lxG | tail -n 1</div><div>0x0240279c  0 -7   276  1055 377  lxterminal.Lxterminal</div>
<div><br></div><div>and by 750 pixels in height:</div><div><br></div><div># centralized</div><div><div>$ wmctrl -lxG | tail -n 1</div><div>0x024028bb  0 393  276  655  377  lxterminal.Lxterminal</div><div>
# ResizeRelative +50 bottom</div><div>rafal@studio ~ $ wmctrl -lxG | tail -n 1</div><div>0x024028bb  0 393  276  655  1127 lxterminal.Lxterminal</div></div><div><br></div><div># centralized</div><div><div>$ wmctrl -lxG | tail -n 1</div>


<div>0x024029af  0 393  276  655  377  lxterminal.Lxterminal</div><div># ResizeRelative +50 top</div><div>rafal@studio ~ $ wmctrl -lxG | tail -n 1</div><div>0x024029af  0 393  -474 655  1127 lxterminal.Lxterminal</div>
</div><div><br></div><div>I have similar bindings binding for moving the window, also by 50 somethings:</div><div><br></div><div><div><keybind key="A-W-Escape" chroot="true"></div>
<div>      <keybind key="Right"></div><div>        <action name="MoveRelative"></div><div>          <x>50</x></div><div>        </action></div><div>      </keybind></div>


<div>      ...</div><div></keybind><br></div><div><br></div><div>and this does move the window by 50 pixels in each direction (I won't paste the wmctrl calls here, trust me on this one ;d).</div><div>
My resolution is 1440x900 and I am on:</div><div><br></div><div><div>$ openbox --version</div><div>Openbox 3.5.0</div><div>...</div></div><div><br></div><div>What are the units that these parameters are specified in? And why are they inconsistent? Or is it just something with my setup and I am doing things wrong?</div>

</div></div></div></div></div></div></blockquote><div><br></div><div style>For a terminal application, it (usually) requests resizes in increments relative to the font size. Openbox uses the resize increment amount specified by an application as the resize unit here.</div>

<div style><br></div><div style>Applications like gedit, or chromium, would resize in pixels since they don't specify an incremental size.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div><div><div><span class="HOEnZb"><font color="#888888">
<div><br></div><div>wujek</div></font></span></div></div></div></div></div></div>
<br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
<br></blockquote></div><br></div></div>