unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Akib Azmain Turja <akib@disroot.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: [C source] What is gravity and the change_gravity argument?
Date: Fri, 08 Jul 2022 19:52:51 +0600	[thread overview]
Message-ID: <87a69j3e4s.fsf@disroot.org> (raw)
In-Reply-To: <8735fb4uwi.fsf@yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2022-07-08 13:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08 12:40 [C source] What is gravity and the change_gravity argument? Akib Azmain Turja
2022-07-08 12:52 ` Eli Zaretskii
2022-07-08 13:06   ` Po Lu
2022-07-08 13:14   ` Akib Azmain Turja
2022-07-08 13:21     ` Po Lu
2022-07-08 13:05 ` Po Lu
2022-07-08 13:52   ` Akib Azmain Turja [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a69j3e4s.fsf@disroot.org \
    --to=akib@disroot.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).