From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Slade Subject: Re: Guix Emacs: use XRandr rather than Gdk? Date: Wed, 13 Feb 2019 20:09:06 -0700 Message-ID: <87h8d79ict.fsf@jnanam.net> References: <87va1rxalq.fsf@jnanam.net> <87ftstjbni.fsf@elephly.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]:52876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu7Oo-0002oq-81 for guix-devel@gnu.org; Wed, 13 Feb 2019 22:09:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gu7Om-0005r3-9G for guix-devel@gnu.org; Wed, 13 Feb 2019 22:09:18 -0500 Received: from mail-it1-x12f.google.com ([2607:f8b0:4864:20::12f]:39303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gu7Oi-0005nr-CX for guix-devel@gnu.org; Wed, 13 Feb 2019 22:09:12 -0500 Received: by mail-it1-x12f.google.com with SMTP id p4so9189040itc.4 for ; Wed, 13 Feb 2019 19:09:09 -0800 (PST) In-reply-to: <87ftstjbni.fsf@elephly.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: Ricardo Wurmus , Guix-devel Hi Ricardo & Guix-devel, On 2019-02-12T07:59:13-0700, Ricardo Wurmus wrote: > 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 Em= acs > 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. Looking into this, I suspect the issue is not building the GTK version (though it would be nice to have a Lucid-toolkit/x11 build available through Guix at some point as I think I prefer it to the GTK one), but rather instead that (looking at `emacs.scm`) it seems that Guix isn't building Emacs with `libxrandr` as one of the (optional) (build time?) dependencies, and so `frames.el` falls back to using Gdk rather than XRandr. What do you think? I can try testing out this theory (i.e. that including `libxrandr` in `emacs.scm` may be enough to remedy the issue) at some point, but it may be another week or two before I'll have time so to do. -Ben -- Benjamin Slade - https://babbagefiles.xyz - https://slade.jnanam.net `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19)) '(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org ) `(Choose Linux ,(Choose Freedom) . https://linux.com )