http://bugs.winehq.org/show_bug.cgi?id=21918
Summary: Alt key doesn't show menu in Notepad++ Product: Wine Version: 1.1.39 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: mathias.buren@gmail.com
On Ubuntu 9.10c 32-bit; Wine 1.1.39. I installed Notepad++ ( http://notepad-plus.sourceforge.net/uk/site.htm ), went to options and enabled "hide menu until alt key is pressed". The menu becomes hidden alright, but it doesn't show the menu again when I press the alt key (tried both left and right alt).
Expected behaviour: The menu shows on when the alt key is pressed.
http://bugs.winehq.org/show_bug.cgi?id=21918
mathias.buren@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mathias.buren@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=21918
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Severity|normal |minor
http://bugs.winehq.org/show_bug.cgi?id=21918
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
http://bugs.winehq.org/show_bug.cgi?id=21918
Grant Coleman Grant@Opped.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Grant@Opped.net
--- Comment #1 from Grant Coleman Grant@Opped.net 2010-05-09 16:25:54 --- Bug still present in wine 1.1.44. Gentoo x64 host. Notepad++ version tested was 5.6.8
http://bugs.winehq.org/show_bug.cgi?id=21918
gat gatlinsullivan@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gatlinsullivan@yahoo.com
--- Comment #2 from gat gatlinsullivan@yahoo.com 2011-05-17 15:45:17 CDT --- This is still present in 1.3.20. Ctrl-Alt-F10 killed my X-Server when I was trying to get a key combination that might restore the Menu.
http://bugs.winehq.org/show_bug.cgi?id=21918
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL| |http://sourceforge.net/proj | |ects/notepad-plus/files/ CC| |kennybobs@o2.co.uk Ever Confirmed|0 |1
--- Comment #3 from Ken Sharp kennybobs@o2.co.uk 2011-10-18 08:54:56 CDT --- Confirming in wine-1.3.30-205-g472a8f7
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #4 from gat gatlinsullivan@yahoo.com 2011-11-01 23:43:21 CDT --- Using Wine 1.3.31 (fedora's version) on Fedora 16 Beta+ (x86_64) with the Wow build and Notepad++ (5.9.6), the problem still exists.
http://bugs.winehq.org/show_bug.cgi?id=21918
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com, | |dmitry@baikal.ru
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #5 from Alex Henrie alexhenrie24@gmail.com 2011-12-05 19:50:28 CST --- Created attachment 37818 --> http://bugs.winehq.org/attachment.cgi?id=37818 Possible patch
A workaround is to set Wine to emulate a virtual desktop. The bug appears to be due to a decision made way back in 2004 to not send SC_KEYMENU on managed windows:
http://www.winehq.org/pipermail/wine-patches/2004-October/013100.html http://www.winehq.org/pipermail/wine-devel/2004-October/030222.html http://source.winehq.org/git/wine.git/commitdiff/b0c45123e5ee39e0f995d53a906... http://source.winehq.org/git/wine.git/commitdiff/eb857aebebb138d9fc3e711b9f2...
Perhaps the SC_KEYMENU prohibition is no longer necessary--when I remove it from winex11, the Notepad++ bug is fixed and I haven't noticed any problems in other applications. Is the fix as simple as that?
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #6 from Dmitry Timoshkov dmitry@baikal.ru 2011-12-05 23:56:32 CST --- (In reply to comment #5)
Perhaps the SC_KEYMENU prohibition is no longer necessary--when I remove it from winex11, the Notepad++ bug is fixed and I haven't noticed any problems in other applications. Is the fix as simple as that?
Obviously managed windows have their own system menu (if any), which the WM provides, and activating a system menu provided by Wine is going to be really confusing. This bug is basically a wontfix.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #7 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 00:22:02 CST --- What do you mean? As far as I can tell, pressing F10 or one of the Alt keys selects the File menu, not the system menu. Can you give an example of a scenario in which this patch wouldn't work?
http://bugs.winehq.org/show_bug.cgi?id=21918
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|dmitry@baikal.ru |
--- Comment #8 from Dmitry Timoshkov dmitry@baikal.ru 2011-12-06 00:30:36 CST --- (In reply to comment #7)
What do you mean? As far as I can tell, pressing F10 or one of the Alt keys selects the File menu, not the system menu. Can you give an example of a scenario in which this patch wouldn't work?
Pressing Alt+[menu key] or F10 activates the application's menu, pressing and releasing the Alt key is supposed to activate a window's system menu.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #9 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 00:45:52 CST --- On native Linux applications on my Ubuntu setup, F10 and Alt+[char] open the application menu, but pressing and releasing Alt doesn't do anything. Does this behavior vary depending on the window manager? Also, if F10 isn't supposed to open the system menu, couldn't we fix Wine so that F10 opens the application menu?
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #10 from Dmitry Timoshkov dmitry@baikal.ru 2011-12-06 01:59:52 CST --- (In reply to comment #9)
On native Linux applications on my Ubuntu setup, F10 and Alt+[char] open the application menu, but pressing and releasing Alt doesn't do anything. Does this behavior vary depending on the window manager?
It doesn't matter what a WM does on Alt key press/release, Wine shouldn't activate it's system menu in that case, because obviously for managed windows window decorations including the system menu are supposed to be drawn by a WM.
Also, if F10 isn't supposed to open the system menu, couldn't we fix Wine so that F10 opens the application menu?
F10 is supposed to activate the application's window menu, which it already does.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #11 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 10:09:17 CST --- (In reply to comment #10)
It doesn't matter what a WM does on Alt key press/release, Wine shouldn't activate it's system menu in that case, because obviously for managed windows window decorations including the system menu are supposed to be drawn by a WM.
Could you post a screenshot of a problem caused by removing the code I mentioned and steps to reproduce? That would help me a lot to see what you're trying to describe.
F10 is supposed to activate the application's window menu, which it already does.
Yes, that's true in most cases. However, on applications without a menu (like Notepad++), SC_KEYMENU is not sent when F10 is pressed, which is the cause of this bug.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #12 from Dmitry Timoshkov dmitry@baikal.ru 2011-12-06 10:27:19 CST --- (In reply to comment #11)
(In reply to comment #10)
It doesn't matter what a WM does on Alt key press/release, Wine shouldn't activate it's system menu in that case, because obviously for managed windows window decorations including the system menu are supposed to be drawn by a WM.
Could you post a screenshot of a problem caused by removing the code I mentioned and steps to reproduce? That would help me a lot to see what you're trying to describe.
Do you understand what is the system window menu? Also do you understand that a native WM might have another idea where/how to draw it on a managed window, and what is it supposed to contain in comparison to Wine?
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #13 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 19:28:33 CST --- Created attachment 37837 --> http://bugs.winehq.org/attachment.cgi?id=37837 Application menu screenshot
The application menu is shown when the user clicks File or presses Alt+F and is selected when the user taps Alt or F10.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #14 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 19:28:57 CST --- Created attachment 37838 --> http://bugs.winehq.org/attachment.cgi?id=37838 Native system menu screenshot
The native system menu is shown when the user presses Alt+Space or clicks the icon in the title bar.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #15 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 19:29:24 CST --- Created attachment 37839 --> http://bugs.winehq.org/attachment.cgi?id=37839 Wine system menu screenshot
The Wine system menu is shown when the user clicks File and then presses the left arrow key.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #16 from Alex Henrie alexhenrie24@gmail.com 2011-12-06 19:30:11 CST --- I think I understand now part of what you're trying to say. Here is a simpler example: 1. In winecfg, uncheck "Allow the window manager to control the windows" (or apply the patch I suggested) 2. Run the game Helicopter Escape (download from http://www.free-windows-games.com/helicopterescape.exe) 3. Tap the Alt key, then press the down arrow key.
This opens the system menu and is exactly the same behavior as Windows--just tapping Alt doesn't open the menu.
If the Wine system menu is too confusing on managed windows, then it should be removed from managed windows entirely and not even shown when the user clicks File and presses the left arrow key. Just blocking SC_KEYMENU is not the right solution because this breaks Notepad++.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #17 from Alex Henrie alexhenrie24@gmail.com 2011-12-08 15:11:49 CST --- The bottom line is Notepad++ needs SC_KEYMENU. A side effect of enabling SC_KEYMENU is allowing the Wine system menu, which is already accessible by an obscure key sequence, to be accessed by another obscure key sequence, just like in Windows.
The question of whether or not managed windows should have a Wine system menu in the first place is a separate issue from which key sequences activate it. Therefore, I recommend enabling SC_KEYMENU now and dealing with the Wine system menu question separately.
http://bugs.winehq.org/show_bug.cgi?id=21918
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #18 from Frédéric Delanoy frederic.delanoy@gmail.com 2012-03-25 10:46:10 CDT --- Still in 1.5.0. Tested with v5.6.8, as in comment 2
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #19 from gat gatlinsullivan@yahoo.com 2012-04-24 03:33:01 CDT --- Still present in Notepad++ 6.1.1 using Fedora 16 x86_64 with wine 1.5.1.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #20 from gat gatlinsullivan@yahoo.com 2012-08-05 16:17:23 CDT --- Still present in Notepad++ 6.1.5 with Wine-1.5.9 on Fedora 17 x86_64.
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #21 from Frédéric Delanoy frederic.delanoy@gmail.com 2013-06-10 04:08:23 CDT --- Still in wine 1.6-rc1 with npp 5.6.8
http://bugs.winehq.org/show_bug.cgi?id=21918
Simon swdevelop1981@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |swdevelop1981@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #22 from Ken Sharp imwellcushtymelike@gmail.com --- Does this still occur in Wine 1.7.19 or later?
http://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #23 from Alex Henrie alexhenrie24@gmail.com --- Still in Wine 1.7.19 with Notepad++ 6.6.3
https://bugs.winehq.org/show_bug.cgi?id=21918
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://sourceforge.net/proj |http://download.tuxfamily.o |ects/notepad-plus/files/ |rg/notepadplus/archive
https://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #24 from gat gatlinsullivan@yahoo.com --- This is still present in Wine 1.9.5 with Fedora 23 using Notepad++ 6.9.
https://bugs.winehq.org/show_bug.cgi?id=21918
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #37818|0 |1 is obsolete| |
--- Comment #25 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 54539 --> https://bugs.winehq.org/attachment.cgi?id=54539 [PATCH] winex11: Send SC_KEYMENU on managed windows.
This is a rebased version of attachment 37818 with the todo's fixed.
I know that Dmitry Timoshkov opposed this patch because he thought that it would be too confusing to display Wine's system menu instead of the window manager's system menu. However, as far as I can tell, removing this block of code does not make it any easier or harder to access Wine's system menu. Simply tapping Alt does not open the system menu on Wine or Windows, although Wine's system menu can be opened by tapping Alt, then tapping Down (just like on Windows). Furthermore, as long as you use a window manager such as fvwm that doesn't have an Alt+Space keybinding, Alt+Space also already opens Wine's system menu.
You can see what I'm talking about by running `wine uninstaller` or any other program that has a system menu but not an application menu.
https://bugs.winehq.org/show_bug.cgi?id=21918
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #26 from Alex Henrie alexhenrie24@gmail.com --- Sebastian, can we include this in Wine Staging?
https://bugs.winehq.org/show_bug.cgi?id=21918
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=21918
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |michael@fds-team.de
--- Comment #27 from Alex Henrie alexhenrie24@gmail.com --- Michael, can we include this in Wine Staging?
https://bugs.winehq.org/show_bug.cgi?id=21918
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/winex11-SC_KEY | |MENU CC| |dmitry@baikal.ru, | |erich.e.hoover@wine-staging | |.com
https://bugs.winehq.org/show_bug.cgi?id=21918
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=41544
https://bugs.winehq.org/show_bug.cgi?id=21918
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |NEW
https://bugs.winehq.org/show_bug.cgi?id=21918
--- Comment #28 from Ken Sharp imwellcushtymelike@gmail.com --- Still an issue in Wine & Staging 7.9
https://bugs.winehq.org/show_bug.cgi?id=21918
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://download.tuxfamily.o |http://download.tuxfamily.o |rg/notepadplus/archive |rg/notepadplus/archive/5.9. | |6/npp.5.9.6.Installer.exe
--- Comment #29 from Ken Sharp imwellcushtymelike@gmail.com --- $ sha1sum npp.5.9.6.Installer.exe c80bce6c4eb76a1bee64b099e941e9a8e7b83e6b npp.5.9.6.Installer.exe
https://bugs.winehq.org/show_bug.cgi?id=21918
gatlibs gatlibs.dev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gatlibs.dev@gmail.com
--- Comment #30 from gatlibs gatlibs.dev@gmail.com --- This is still present on Fedora 37 with wine-7.20 (Staging) and npp v8.4.7 for 64 bits.