From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Slade Subject: Guix Emacs: use XRandr rather than Gdk? Date: Sun, 10 Feb 2019 20:33:37 -0700 Message-ID: <87va1rxalq.fsf@jnanam.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gt2Lw-00019y-4K for guix-devel@gnu.org; Sun, 10 Feb 2019 22:33:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gt2Lt-0004TW-6o for guix-devel@gnu.org; Sun, 10 Feb 2019 22:33:52 -0500 Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]:35265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gt2Lt-0004GO-0m for guix-devel@gnu.org; Sun, 10 Feb 2019 22:33:49 -0500 Received: by mail-it1-x12d.google.com with SMTP id r6so22882486itk.0 for ; Sun, 10 Feb 2019 19:33:39 -0800 (PST) Received: from sushoma (c-174-52-88-123.hsd1.ut.comcast.net. [174.52.88.123]) by smtp.gmail.com with ESMTPSA id l75sm4571939itl.13.2019.02.10.19.33.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Feb 2019 19:33:38 -0800 (PST) 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: Guix-devel In both flown-blown GuixSD as well as Guix on a foreign distro, Guix's Emacs seems to use "Gdk" rather than "XRandr" to get screen/monitor information. Every other packaged version of Emacs I've tried uses "XRandr" to get screen/monitor information. This is an issue because "Gdk" apparently doesn't know about individual screens/monitors, but only about the aggregate area, whereas "XRandr" returns individual screen names (e.g. "DVI-1") and their respective areas. This means that, on multi-monitor, where Emacs packages use the `frame.el` library, there is no way of distinguishing screens/monitors (problematically for packages which try to make reference to different screens, e.g. https://gitlab.com/emacsomancer/equake ). 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'. -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 )