GNU bug report logs - #76481
31.0.50; Extreme weirdness with GDK_SCALE=

Previous Next

Package: emacs;

Reported by: Jonathan Corbet <corbet <at> lwn.net>

Date: Fri, 21 Feb 2025 22:12:01 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #8 received at 76481 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Jonathan Corbet <corbet <at> lwn.net>
Cc: 76481 <at> debbugs.gnu.org
Subject: Re: bug#76481: 31.0.50; Extreme weirdness with GDK_SCALE=
Date: Sat, 22 Feb 2025 09:23:15 +0800
Jonathan Corbet <corbet <at> lwn.net> writes:

> With emacs built to use GTK, and running under Wayland...  run:
>
>    $ GDK_SCALE= emacs
>
> The result is a number of hallucinogenic effects ranging from emacs just
> showing up as a black square on the screen to window-resizing attempts
> setting the frame to random sizes unrelated to mouse movements.
>
> Things work much better without GDK_SCALE= and I can happily take that
> out (it was put into my scripts years ago for long-forgotten reasons),
> but other users may be tripped up by this too.
>
> This happens even with "emacs -q".

Are you building the X11 configuration of Emacs with GTK, or the PGTK
configuration?

At all events, please place a breakpoint on xg_get_scale and ascertain
what it returns.  I suspect an oversigt in GDK, as it appears that Emacs
does not access this environment variable directly.




This bug report was last modified 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.