[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [C source] What is gravity and the change_gravity argument?
From: |
Akib Azmain Turja |
Subject: |
Re: [C source] What is gravity and the change_gravity argument? |
Date: |
Fri, 08 Jul 2022 19:52:51 +0600 |
Po Lu <luangruo@yahoo.com> writes:
> Akib Azmain Turja <akib@disroot.org> writes:
>
>> X and PGTK uses that 'change_gravity' argument, I can't understand what
>> they are doing with them. I searched the internet and found several
>> answers[1], but couldn't make any sense.
>
> `change_gravity' means to actually change the position of the frame's
> outer window, and to reset the window gravity to NorthWestGravity. If
> it is 0, then we ignore the value of xoff and yoff, preserve the current
> window gravity, and simply restore the previously set frame position.
>
> X has two gravities: the window gravity and bit gravity. The window
> gravity defines how a window is repositioned when its parent is resized.
> The bit gravity describes how the contents of the window are moved or
> obscured when it is resized.
Thanks.
>
> I think the values are quite self explanatory.
Yes, just like directions in a map (of somewhere).
--
Akib Azmain Turja
This message is signed by me with my GnuPG key. It's fingerprint is:
7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5
signature.asc
Description: PGP signature