From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: [C source] What is gravity and the change_gravity argument? Date: Fri, 08 Jul 2022 19:52:51 +0600 Message-ID: <87a69j3e4s.fsf@disroot.org> References: <87wncn3hhr.fsf@disroot.org> <8735fb4uwi.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 08 15:54:43 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9oRO-0002uh-Sh for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jul 2022 15:54:42 +0200 Original-Received: from localhost ([::1]:43334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9oRN-0004Im-Om for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jul 2022 09:54:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9oQB-0002MR-QO for emacs-devel@gnu.org; Fri, 08 Jul 2022 09:53:27 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:50192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9oQ9-0002Oa-Nf for emacs-devel@gnu.org; Fri, 08 Jul 2022 09:53:27 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6E66B40EF2; Fri, 8 Jul 2022 15:53:23 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id evU2Qe7zEp1h; Fri, 8 Jul 2022 15:53:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1657288401; bh=kLG1H9wZ+CBMjb6r7TPs/oCc65X8GlL8YLibeR9S4bY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=lSzRVBTgalKwqCepnb4mX9kkAQ4vDdopHRo0y7ZdGATFey1TRRvcGiPMfIvpD1Asc 33vWqvYIKSfQ1lhypAOH7xGjbbK22hSEV45tVgSPAMTMTG0080YsQmUPpc6wril2qu ViHoG1RYWihLrP7OU/XAPGgPMVN+6p3G+vItdoogcHfI3EpSrAQ6QREdhpzdtrspDl JC6Rzq+vROYc/bq4M4JVGR8QdfRIqPWrk+0HAd+bSgscnwd0TG3hNCT6Xf8K8OGN5k IKWx5W1H64o9aFiLVPPCP+Zb3emYle5LwE1Hei7Vs+8NPLhXCRHGs1OegzdB3EVXmk ythdKh9yRz8kg== In-Reply-To: <8735fb4uwi.fsf@yahoo.com> Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291968 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Po Lu writes: > Akib Azmain Turja 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). =2D-=20 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmLINrMACgkQVTX89U2I YWsoRRAA5X9PAPcjehJJjMuUoQhq0VyZuGF2UfN1a9RbU+KRipcGC7E614m2KwzY 81t9/+hH0Th42rXv9H4cmyfl0EOuTFuW8MkpNug+82YyA6u+SW8NU8aeuJ7/hIed zmJiE+RHW6/QmmpLZuCltU+tpbvN+eCMnp/wq2NsGLEk97r963p/l/JCkL8ujlAr uY0dHer8Liplo8GTKEDRviwiaBCyOoKV+/nK/8QkH+SBQ21+GVyZ++gFsWAbkUTa OwypogoNIu4VYym79KAxx5w051jDEaw5O9X1JcN46MQBD6FD7vhCSdALPHlJvqmQ Plc+zbDViT4V+G2UX0m4cHOEiXPI0OT/ecKPQpdHj5AGLelJ4Nq7ghcheJ94q1/m SbhtpUAse3IrQ2CydOd3zq11cR9nWofwV6EoXcSC16Ji4Xkqt4IrEKoWl/XUqxfV PAaQ1BkvvsYUbtibPhW13arorIUzwgi4abQIVLxyTaepX959nHwtS5o9HAEhmm5C /N3qAGYcQg9bWTkys/xGww8HHyUYvwS6b4S8SvG7Wb9AQ63qPZaDoiaJwvV784c2 UWcmuXu54Tl9XUKtTU9AYaniZV0JTnMmMZVKHdlyW5ReK8PL61ltpgF2OKBjXdSS QnH9gK5SsodxvC7caEJ2o9gbadO4ZZGQnJC23njJjDcq2WB2W6I= =YmS8 -----END PGP SIGNATURE----- --=-=-=--