From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Guix Emacs: use XRandr rather than Gdk? Date: Tue, 12 Feb 2019 15:59:13 +0100 Message-ID: <87ftstjbni.fsf@elephly.net> References: <87va1rxalq.fsf@jnanam.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtZlv-0000ON-91 for guix-devel@gnu.org; Tue, 12 Feb 2019 10:14:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtZlt-0002ds-LC for guix-devel@gnu.org; Tue, 12 Feb 2019 10:14:55 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtZlp-0002Ve-LZ for guix-devel@gnu.org; Tue, 12 Feb 2019 10:14:53 -0500 In-reply-to: <87va1rxalq.fsf@jnanam.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Benjamin Slade Cc: Guix-devel Benjamin Slade writes: > I thought I'd start here, since I've only found this behaviour on > Guix, and `frame.el` doesn't seem to be very forthcoming about how it > decides whether to use 'Gdk' or 'XRandr'. This is done by x-display-monitor-attributes-list, which is defined in src/xfns.c. It uses Gdk when Emacs is configured to USE_GTK (the code that sets the source to =E2=80=9CGdk=E2=80=9D is in an #ifdef). We build Emacs with GTK+, but =E2=80=A6 we may not need to do this as Emacs= is not a regular GTK client. I recall that there are other oddities when using GTK, such as crashes when disconnecting from a remote Emacs daemon, which only happens with a GTK build of Emacs. There may be another way to get a fully graphical Emacs without having to build with GTK. -- Ricardo