From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27357: 26.0.50; Emacs starts fullscreen in Ubuntu 17.04 Date: Sun, 16 Jul 2017 17:16:56 +0200 Message-ID: <87d190tnrr.fsf@mouse> References: <594143AB.7040500@gmx.at> <59423E58.8030606@gmx.at> <59425D45.1010006@gmx.at> <87a84ik6w6.fsf@mouse> <871spuk5im.fsf@mouse> <595DD90E.2040503@gmx.at> <87lgnor1v3.fsf@mouse> <596B613C.4080203@gmx.at> <87h8ycr0qu.fsf@mouse> <877ez8qzd1.fsf@mouse> <87379wqyvn.fsf@mouse> <596B703F.9070608@gmx.at> <87y3ropjnb.fsf@mouse> <596B73CD.2010605@gmx.at> <87pod0picg.fsf@mouse> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500218300 15779 195.159.176.226 (16 Jul 2017 15:18:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2017 15:18:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27357@debbugs.gnu.org To: Jan D Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 16 17:18:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWlJI-0003pU-8l for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 17:18:16 +0200 Original-Received: from localhost ([::1]:45529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWlJM-0003oP-2X for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 11:18:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWlJ9-0003mZ-6b for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 11:18:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWlJ4-0005B5-6t for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 11:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWlJ4-0005Au-3U for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 11:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWlJ3-00055Y-UE for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 11:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jul 2017 15:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27357-submit@debbugs.gnu.org id=B27357.150021823019497 (code B ref 27357); Sun, 16 Jul 2017 15:18:01 +0000 Original-Received: (at 27357) by debbugs.gnu.org; 16 Jul 2017 15:17:10 +0000 Original-Received: from localhost ([127.0.0.1]:42591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWlIA-00054M-8R for submit@debbugs.gnu.org; Sun, 16 Jul 2017 11:17:09 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:60155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWlI5-00053r-ET for 27357@debbugs.gnu.org; Sun, 16 Jul 2017 11:17:05 -0400 Original-Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dWlI0-0004oc-Ol; Sun, 16 Jul 2017 17:17:00 +0200 In-Reply-To: <87pod0picg.fsf@mouse> (Lars Ingebrigtsen's message of "Sun, 16 Jul 2017 16:27:43 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134630 Archived-At: Jan, I think you were the one that added the GDK_SCALE thing to Emacs? I've been chasing down some HiDPI issues: Lars Ingebrigtsen writes: > That might be a good idea, but I'm not sure where the previous people > who were working on scaling were going with their work. > > Amusingly enough, the > > int scale = xg_get_gdk_scale (); > > stuff that's sprinkled around just seems to get in the way of fixing > this stuff. It explicitly looks at the GDK_SCALE environment variable, > which is (by default) not set. So while some bits of Emacs is using > that variable to determine some things, querying GTK in the proper way > (with gtk_widget_get_scale_factor) will get another answer. Is there a drawback to looking at gtk_widget_get_scale_factor instead of the GDK_SCALE variable? Reworking this (on the scratch/hidpi branch) to not look at that variable seems to fix all my HiDPI issues. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no