mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
allow key grabbing for unmodified keys (e.g F1, etc) fix #82630
2002-05-25 Erwann Chenede - <erwann.chenede@sun.com> * src/keybindings.c (rebuild_screen_binding_table, rebuild_window_binding_table, meta_change_keygrab): allow key grabbing for unmodified keys (e.g F1, etc) fix #82630
This commit is contained in:
parent
d466c615ed
commit
af845f4de7
@ -1,3 +1,10 @@
|
|||||||
|
2002-05-25 Erwann Chenede - <erwann.chenede@sun.com>
|
||||||
|
|
||||||
|
* src/keybindings.c (rebuild_screen_binding_table,
|
||||||
|
rebuild_window_binding_table,
|
||||||
|
meta_change_keygrab): allow key grabbing for
|
||||||
|
unmodified keys (e.g F1, etc) fix #82630
|
||||||
|
|
||||||
2002-05-25 Anders Carlsson <andersca@gnu.org>
|
2002-05-25 Anders Carlsson <andersca@gnu.org>
|
||||||
|
|
||||||
* src/place.c: (get_vertical_edges), (get_horizontal_edges):
|
* src/place.c: (get_vertical_edges), (get_horizontal_edges):
|
||||||
|
@ -358,8 +358,7 @@ rebuild_screen_binding_table (MetaDisplay *display)
|
|||||||
dest = 0;
|
dest = 0;
|
||||||
while (src < n_bindings)
|
while (src < n_bindings)
|
||||||
{
|
{
|
||||||
if (prefs[src].keysym != None &&
|
if (prefs[src].keysym != None)
|
||||||
prefs[src].mask != 0)
|
|
||||||
{
|
{
|
||||||
display->screen_bindings[dest].name = prefs[src].name;
|
display->screen_bindings[dest].name = prefs[src].name;
|
||||||
display->screen_bindings[dest].keysym = prefs[src].keysym;
|
display->screen_bindings[dest].keysym = prefs[src].keysym;
|
||||||
@ -395,8 +394,7 @@ rebuild_window_binding_table (MetaDisplay *display)
|
|||||||
dest = 0;
|
dest = 0;
|
||||||
while (src < n_bindings)
|
while (src < n_bindings)
|
||||||
{
|
{
|
||||||
if (prefs[src].keysym != None &&
|
if (prefs[src].keysym != None)
|
||||||
prefs[src].mask != 0)
|
|
||||||
{
|
{
|
||||||
display->window_bindings[dest].name = prefs[src].name;
|
display->window_bindings[dest].name = prefs[src].name;
|
||||||
display->window_bindings[dest].keysym = prefs[src].keysym;
|
display->window_bindings[dest].keysym = prefs[src].keysym;
|
||||||
@ -590,13 +588,6 @@ meta_change_keygrab (MetaDisplay *display,
|
|||||||
* X provides no better way to do this.
|
* X provides no better way to do this.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((modmask & ~(display->ignored_modifier_mask)) == 0)
|
|
||||||
{
|
|
||||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
|
||||||
"Unable to grab/ungrab keybinding because it has no modifiers\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
meta_topic (META_DEBUG_KEYBINDINGS,
|
||||||
"%s keybinding %s mask 0x%x\n",
|
"%s keybinding %s mask 0x%x\n",
|
||||||
grab ? "Grabbing" : "Ungrabbing",
|
grab ? "Grabbing" : "Ungrabbing",
|
||||||
|
Loading…
Reference in New Issue
Block a user