GNU bug report logs - #38402
[PATCH] Fix empty/incorrect GTK menus on HiDPI monitors with window scaling factor > 1

Previous Next

Package: emacs;

Reported by: Tobias Bading <tbading <at> web.de>

Date: Wed, 27 Nov 2019 16:00:02 UTC

Severity: normal

Tags: patch

Done: Tobias Bading <tbading <at> web.de>

Bug is archived. No further changes may be made.

Full log


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

From: Tobias Bading <tbading <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fix empty/incorrect GTK menus on HiDPI monitors with window
 scaling factor > 1
Date: Wed, 27 Nov 2019 16:59:39 +0100
[Message part 1 (text/plain, inline)]
This should fix Bug#31223, Bug#28106, Bug#23672 as well as Ubuntu bug
https://bugs.launchpad.net/ubuntu/+source/emacs25/+bug/1695228

Also fixes the formerly unscaled Y value returned by
frame-monitor-workarea (and display-monitor-attributes-list).

For details on why some GTK menus were empty please see thread
https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01061.html

* src/gtkutil.c
  (menubar_map_cb): properly scale req.height so that the menu bar's
  height is in device pixels as expected
  (xg_update_frame_menubar): dito
  (xg_event_is_for_menubar): properly scale rec.x and rec.y so that
  gtk_widget_intersect() works as intended
* src/xfns.c
  (Fx_display_monitor_attributes_list): properly scale work.x and work.y

[0001-Fix-empty-incorrect-GTK-menus-on-HiDPI-monitors.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 171 days ago.

Previous Next


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