[gnome-shell] global: Use the new mutter API for focusing the stage window
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] global: Use the new mutter API for focusing the stage window
- Date: Fri, 24 May 2013 21:44:37 +0000 (UTC)
commit 634ce34e00d144bbfd2636382186157fc7964e17
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu May 23 16:26:50 2013 -0400
global: Use the new mutter API for focusing the stage window
This way, we aren't "going behind mutter's back" about what the current
focused window is.
https://bugzilla.gnome.org/show_bug.cgi?id=700735
src/shell-global.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 2f96048..da7732b 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -541,14 +541,6 @@ focus_window_changed (MetaDisplay *display,
shell_global_set_stage_input_mode (global, SHELL_STAGE_INPUT_MODE_NORMAL);
}
-static void
-shell_global_focus_stage (ShellGlobal *global)
-{
- XSetInputFocus (global->xdisplay, global->stage_xwindow,
- RevertToPointerRoot,
- shell_global_get_current_time (global));
-}
-
/**
* shell_global_set_stage_input_mode:
* @global: the #ShellGlobal
@@ -588,7 +580,8 @@ shell_global_set_stage_input_mode (ShellGlobal *global,
meta_set_stage_input_region (screen, global->input_region);
if (mode == SHELL_STAGE_INPUT_MODE_FOCUSED)
- shell_global_focus_stage (global);
+ meta_focus_stage_window (global->meta_screen,
+ shell_global_get_current_time (global));
if (mode != global->input_mode)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]