Update shortcut label for Unmaximize menu entry.
commit766e8ad57513f2e9f24cdcf96b5dc7cc5c656521
authorIain Patterson <wm@iain.cx>
Fri, 18 Oct 2013 16:33:50 +0000 (18 17:33 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 19 Oct 2013 12:48:58 +0000 (19 09:48 -0300)
tree496f6e89ee1d150cb4e2ffd41234453ce8254250
parentdf7fb014e59630653d06387a28b80688384b68d3
Update shortcut label for Unmaximize menu entry.

The window menu Unmaximize entry had the Maximize shortcut key as its
label.  That's because the Maximize and Unmaximize menu options are in
fact the same single entry with different text depending on the window's
state.

It can, however, cause confusion if a window is maximized using one
of the "Other maximization" options such as Maximus.  Selecting the
Unmaximize entry from the window menu would indeed unmaximize the window
but pressing the listed shortcut key would not.

We now dynamically update the shortcut label so that it shows a key
which will actually unmaximize the window.  Thus the menu description
and shortcut action are now consistent.
src/winmenu.c