A problem about Metacity


I have read metacity source codes,I want to know Metacity how to bind Alt+F1 to popup start menu and Alt+F2 to  run run-dialog.

The process: main.c[ main() ] -> display.c[ meta_display_open() ] -> display.c[ event_callback() ] -> keybindings.c[ meta_display_process_key_event() ] ->keybindings.c[ handle_panel_keybinding() ].

but I still can't understant that Metacity catchs Alt+F1 or Alt+F2,then send a X event to destination window,but how to associate with start menu or run-dialog like pressing button.

Any help or suggestions would be appreciated.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]