Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1384185 - Dynamic menus are not updated if clicked on with the mouse
Summary: Dynamic menus are not updated if clicked on with the mouse
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 26
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-12 18:33 UTC by Hugh Winkler
Modified: 2018-08-20 07:27 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 11:55:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
tarred directory containing two dummy files to use in repro recipe (232 bytes, application/x-gzip)
2017-05-22 15:20 UTC, Hugh Winkler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 550541 0 None None None 2016-10-12 18:33:06 UTC
Red Hat Bugzilla 1388514 0 unspecified CLOSED tool bar separator misbehaves when I switch to show tool bar on the left (or right) 2022-05-16 11:32:56 UTC
Red Hat Bugzilla 1389448 0 unspecified CLOSED Lots of errors "... is drawn without a current allocation. This should not happen." 2022-05-16 11:32:56 UTC
Red Hat Bugzilla 1471258 0 unspecified CLOSED Add emacs build with LUCID X toolkit 2022-05-16 11:32:56 UTC
Red Hat Bugzilla 1615188 0 unspecified CLOSED dynamic menus are empty at first 2022-05-16 11:32:56 UTC

Internal Links: 1388514 1389448 1471258 1615188

Description Hugh Winkler 2016-10-12 18:33:07 UTC
Description of problem:

Dynamic menus are not updated if clicked on with the mouse. They are updated if the menu is opened with F10.

Version-Release number of selected component (if applicable):
GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-19

How reproducible:
100%

Steps to Reproduce:
1. Open a .html file in html-mode
2. Click mouse on HTML menu

Actual results:
Small empty rectangle appears

Expected results:
Full menu should appear

Additional info:

F10 does display the full menu

This bug looks just like very old issues Ubuntu #415101 (https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/415101) and Debian #550541 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550541). However the workaround there, to start emacs with GDK_NATIVE_WINDOWS=1, no longer works.

---
$ uname -a
Linux xxxx 4.7.6-200.fc24.x86_64 #1 SMP Mon Oct 3 20:10:24 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ dnf info emacs
Last metadata expiration check: 0:57:15 ago on Wed Oct 12 12:22:14 2016.
Installed Packages
Name        : emacs
Arch        : x86_64
Epoch       : 1
Version     : 25.1
Release     : 1.fc24
Size        : 15 M
Repo        : @System
From repo   : updates
Summary     : GNU Emacs text editor
URL         : http://www.gnu.org/software/emacs/
License     : GPLv3+ and CC0-1.0
Description : Emacs is a powerful, customizable, self-documenting, modeless text
            : editor. Emacs contains special code editing features, a scripting
            : language (elisp), and the capability to read mail, news, and more
            : without leaving the editor.
            : 
            : This package provides an emacs binary with support for X windows.

Comment 1 Hugh Winkler 2016-10-12 18:39:16 UTC
Related?: [gtk+] Remove support for GDK_NATIVE_WINDOWS

https://mail.gnome.org/archives/commits-list/2011-March/msg03590.html

Comment 2 Hugh Winkler 2016-10-12 18:42:44 UTC
Also:

$dnf info gtk3
Last metadata expiration check: 1:19:22 ago on Wed Oct 12 12:22:14 2016.

Installed Packages
Name        : gtk3
Arch        : x86_64
Epoch       : 0
Version     : 3.20.9
Release     : 1.fc24
Size        : 17 M
Repo        : @System
From repo   : updates
Summary     : The GIMP ToolKit (GTK+), a library for creating GUIs for X
URL         : http://www.gtk.org
License     : LGPLv2+
Description : GTK+ is a multi-platform toolkit for creating graphical user
            : interfaces. Offering a complete set of widgets, GTK+ is suitable for
            : projects ranging from small one-off tools to complete application
            : suites.
            : 
            : This package contains version 3 of GTK+.

Comment 3 Jan Synacek 2016-10-13 07:41:02 UTC
I can't reproduce this with emacs-25.1-1.fc24.x86_64. Do you run 'emacs -Q' ? Can you reproduce the bug with a simple window manager, like i3 or openbox?

Comment 4 Hugh Winkler 2016-10-16 15:26:42 UTC
o Same behavior using emacs -Q 
o Correct behavior under i3wm!

(also wondering if my hidpi screen or the Gnome settings I changed to accomodate that, has something to do with it -- I'll experiment and report).

Comment 5 Hugh Winkler 2017-05-22 15:20:16 UTC
Created attachment 1281117 [details]
tarred directory containing two dummy files to use in repro recipe

I have a repro case that succeeds under one setting and fails under another. The problem seems to be related to Gnome HiDPI settings. 

Using gnome-tweak-tool, choose "Windows" from the left hand "Tweaks" column. The default setting for "HiDPI Window Scaling" in the right-hand pane is 1. When it is set to one, emacs menu behavior is correct. When I set it to 2, the behavior I outlined occurs. I am now running Fedora 25 and I've had to change the repro recipe a little. I'm uploading a small directory containing two files. 

1. Set Gnome HiDPI Window Scaling to 2 as described above.
2. cd to emacs-menubug-repro
3. start emacs -Q -q .
4. ^X-F open-me-first.py
5. ^X-F open-me-second.html
6. Using mouse, click "SGML" menu


Expected: rectangle containing full SGML menu contents
Actual: Tiny empty rectangle underneath the SGML menu title.


--------------------------------------------------------------------------------------

$ uname -a
Linux t5600 4.10.15-200.fc25.x86_64 #1 SMP Mon May 8 18:46:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ dnf info emacs
Last metadata expiration check: 0:00:57 ago on Mon May 22 10:17:03 2017.
Installed Packages
Name        : emacs
Arch        : x86_64
Epoch       : 1
Version     : 25.2
Release     : 2.fc25
Size        : 16 M
Repo        : @System
From repo   : updates
Summary     : GNU Emacs text editor
URL         : http://www.gnu.org/software/emacs/
License     : GPLv3+ and CC0-1.0
Description : Emacs is a powerful, customizable, self-documenting, modeless text
            : editor. Emacs contains special code editing features, a scripting
            : language (elisp), and the capability to read mail, news, and more
            : without leaving the editor.
            : 
            : This package provides an emacs binary with support for X windows.

Comment 6 Hugh Winkler 2017-06-12 15:24:50 UTC
Not trying to rush anything... just making sure people are aware I made a reproducible case in the previous upload. And I'd like to confirm that others are able to reproduce it. Thanks.

Comment 7 Jan Synacek 2017-07-12 08:52:08 UTC
Yes, I managed to reproduce the problem using the steps in comment 5. The important thing to reproduce this is setting the scaling and switching to the html buffer. I also retested this under Wayland as well as Xorg, both result in the faulty behavior. Also happens on F26.

Comment 10 Fedora End Of Life 2017-07-25 23:27:16 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 11 Fedora End Of Life 2018-05-03 08:12:30 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2018-05-29 11:55:16 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.