From ea552ea1573f998eac9d88806613f2586160ac98 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 12 Oct 2014 21:52:56 -0700 Subject: [PATCH] keyboardManager: Adopt to changes in meta_display_freeze_keyboard --- js/misc/keyboardManager.js | 2 +- src/shell-global.c | 8 -------- src/shell-global.h | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/js/misc/keyboardManager.js b/js/misc/keyboardManager.js index acc7eecc9..e8a3e781e 100644 --- a/js/misc/keyboardManager.js +++ b/js/misc/keyboardManager.js @@ -35,7 +35,7 @@ function releaseKeyboard() { } function holdKeyboard() { - global.freeze_keyboard(global.get_current_time()); + global.display.freeze_keyboard(global.get_current_time()); } const KeyboardManager = new Lang.Class({ diff --git a/src/shell-global.c b/src/shell-global.c index d90ceaff8..e9c60bff7 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1132,14 +1132,6 @@ shell_global_end_modal (ShellGlobal *global, sync_input_region (global); } -void -shell_global_freeze_keyboard (ShellGlobal *global, - guint32 timestamp) -{ - if (global->stage_xwindow != None) - meta_display_freeze_keyboard (global->meta_display, global->stage_xwindow, timestamp); -} - /* Code to close all file descriptors before we exec; copied from gspawn.c in GLib. * * Authors: Padraig O'Briain, Matthias Clasen, Lennart Poettering diff --git a/src/shell-global.h b/src/shell-global.h index a5630ecd3..4a03087b9 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -45,8 +45,6 @@ gboolean shell_global_begin_modal (ShellGlobal *global, MetaModalOptions options); void shell_global_end_modal (ShellGlobal *global, guint32 timestamp); -void shell_global_freeze_keyboard (ShellGlobal *global, - guint32 timestamp); void shell_global_set_stage_input_region (ShellGlobal *global, GSList *rectangles);