00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ 00002 00010 /* 00011 * Copyright (C) 2001 Havoc Pennington 00012 * 00013 * This program is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU General Public License as 00015 * published by the Free Software Foundation; either version 2 of the 00016 * License, or (at your option) any later version. 00017 * 00018 * This program is distributed in the hope that it will be useful, but 00019 * WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 * General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00026 * 02111-1307, USA. 00027 */ 00028 00029 #ifndef META_KEYBINDINGS_H 00030 #define META_KEYBINDINGS_H 00031 00032 #include "display-private.h" 00033 #include "window.h" 00034 00035 void meta_display_init_keys (MetaDisplay *display); 00036 void meta_display_shutdown_keys (MetaDisplay *display); 00037 void meta_screen_grab_keys (MetaScreen *screen); 00038 void meta_screen_ungrab_keys (MetaScreen *screen); 00039 gboolean meta_screen_grab_all_keys (MetaScreen *screen, 00040 guint32 timestamp); 00041 void meta_screen_ungrab_all_keys (MetaScreen *screen, 00042 guint32 timestamp); 00043 void meta_window_grab_keys (MetaWindow *window); 00044 void meta_window_ungrab_keys (MetaWindow *window); 00045 gboolean meta_window_grab_all_keys (MetaWindow *window, 00046 guint32 timestamp); 00047 void meta_window_ungrab_all_keys (MetaWindow *window, 00048 guint32 timestamp); 00049 void meta_display_process_key_event (MetaDisplay *display, 00050 MetaWindow *window, 00051 XEvent *event); 00052 void meta_set_keybindings_disabled (gboolean setting); 00053 void meta_display_process_mapping_event (MetaDisplay *display, 00054 XEvent *event); 00055 00056 #endif 00057 00058 00059 00060
1.5.5