~noskcaj/metacity/3.14.3

« back to all changes in this revision

Viewing changes to debian/patches/git_support_new_schemas.patch

  • Committer: Martin Pitt
  • Date: 2014-08-01 06:55:14 UTC
  • mfrom: (158.1.4 metacity-ubuntu)
  • Revision ID: martin.pitt@ubuntu.com-20140801065514-587npz1h158s58u2
merge with Debian 1:3.12.0-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From 67165f516f87adc1b20f3339294299565f6db56d Mon Sep 17 00:00:00 2001
2
 
From: Dmitry Shachnev <mitya57@ubuntu.com>
3
 
Date: Thu, 11 Apr 2013 14:34:49 +0000
4
 
Subject: Add support for switch-applications keybindings
5
 
 
6
 
In gsettings-desktop-schemas 3.8, there is not shortcut for
7
 
switch-windows, and Alt+Tab points to switch-applications by
8
 
default.
9
 
 
10
 
As we do not support switching applications, but want Alt+Tab to
11
 
work, just bind switch-applications to the same action as
12
 
switch-windows is currently bound to (and the same for -backward).
13
 
 
14
 
https://bugzilla.gnome.org/show_bug.cgi?id=697801
15
 
---
16
 
diff --git a/src/50-metacity-navigation.xml.in b/src/50-metacity-navigation.xml.in
17
 
index fc0b457..597cc47 100644
18
 
--- a/src/50-metacity-navigation.xml.in
19
 
+++ b/src/50-metacity-navigation.xml.in
20
 
@@ -30,6 +30,9 @@
21
 
                      _description="Move window one workspace down" />
22
 
 
23
 
        <KeyListEntry name="switch-windows"
24
 
+                     _description="Switch windows"/>
25
 
+
26
 
+       <KeyListEntry name="switch-applications"
27
 
                      _description="Switch applications"/>
28
 
 
29
 
        <KeyListEntry name="switch-group"
30
 
diff --git a/src/include/all-keybindings.h b/src/include/all-keybindings.h
31
 
index f1aa02d..a930726 100644
32
 
--- a/src/include/all-keybindings.h
33
 
+++ b/src/include/all-keybindings.h
34
 
@@ -129,6 +129,12 @@ keybind (switch-group-backward, handle_switch, META_TAB_LIST_GROUP,
35
 
 keybind (switch-windows, handle_switch, META_TAB_LIST_NORMAL, BINDING_REVERSES)
36
 
 keybind (switch-windows-backward, handle_switch, META_TAB_LIST_NORMAL,
37
 
          REVERSES_AND_REVERSED)
38
 
+/* We do not support switching applications, so we map these to switching
39
 
+ * windows */
40
 
+keybind (switch-applications, handle_switch, META_TAB_LIST_NORMAL,
41
 
+         BINDING_REVERSES)
42
 
+keybind (switch-applications-backward, handle_switch, META_TAB_LIST_NORMAL,
43
 
+         REVERSES_AND_REVERSED)
44
 
 keybind (switch-panels, handle_switch, META_TAB_LIST_DOCKS, BINDING_REVERSES)
45
 
 keybind (switch-panels-backward, handle_switch, META_TAB_LIST_DOCKS,
46
 
          REVERSES_AND_REVERSED)
47