[mutter] Allow raise_on_click to be set independent of focus_mode
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Allow raise_on_click to be set independent of focus_mode
- Date: Mon, 29 Dec 2014 06:38:13 +0000 (UTC)
commit 93b7137c62810460d65acaeab20cb08973d370b5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Dec 28 22:36:27 2014 -0800
Allow raise_on_click to be set independent of focus_mode
Based on a patch by Thomas Jaeger <ThJaeger gmail com>
src/core/core.c | 3 +--
src/core/prefs.c | 5 +----
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/core/core.c b/src/core/core.c
index e603af8..e31f7e3 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -161,8 +161,7 @@ lower_window_and_transients (MetaWindow *window,
meta_window_foreach_transient (window, lower_window_and_transients, NULL);
- if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK &&
- meta_prefs_get_raise_on_click ())
+ if (meta_prefs_get_raise_on_click ())
{
/* Move window to the back of the focusing workspace's MRU list.
* Do extra sanity checks to avoid possible race conditions.
diff --git a/src/core/prefs.c b/src/core/prefs.c
index afbe8dd..fff3a32 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -1300,10 +1300,7 @@ meta_prefs_get_attach_modal_dialogs (void)
gboolean
meta_prefs_get_raise_on_click (void)
{
- /* Force raise_on_click on for click-to-focus, as requested by Havoc
- * in #326156.
- */
- return raise_on_click || focus_mode == G_DESKTOP_FOCUS_MODE_CLICK;
+ return raise_on_click;
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]