Port preferences to GSettings
Move preferences to GSettings, using mainly shared schemas from gsettings-desktop-schemas. Unlike GConf, GSettings support is not optional, as Gio is already a hard dependency of GTK+. https://bugzilla.gnome.org/show_bug.cgi?id=635378
This commit is contained in:
parent
a2726f41c9
commit
d0910da036
3
.gitignore
vendored
3
.gitignore
vendored
@ -48,7 +48,8 @@ libmutter.pc
|
|||||||
mutter
|
mutter
|
||||||
mutter-theme-viewer
|
mutter-theme-viewer
|
||||||
mutter.desktop
|
mutter.desktop
|
||||||
mutter.schemas
|
org.gnome.mutter.gschema.valid
|
||||||
|
org.gnome.mutter.gschema.xml
|
||||||
testasyncgetprop
|
testasyncgetprop
|
||||||
testboxes
|
testboxes
|
||||||
testgradient
|
testgradient
|
||||||
|
8
HACKING
8
HACKING
@ -42,10 +42,10 @@ Minimal Building/Testing Environment
|
|||||||
build a development version of Metacity -- odds are, you may be able
|
build a development version of Metacity -- odds are, you may be able
|
||||||
to build metacity from CVS without building any other modules.
|
to build metacity from CVS without building any other modules.
|
||||||
|
|
||||||
As long as you have gtk+ >= 2.10 and GConf with your distro (gtk+ >=
|
As long as you have gtk+ >= 3.0 and GIO >= 2.25.10 with your distro
|
||||||
2.6 if you manually revert the change from bug 348633), you should
|
(gtk+ >= 2.6 if you manually revert the change from bug 348633), you
|
||||||
be able to install your distro's development packages
|
should be able to install your distro's development packages
|
||||||
(e.g. gtk2-devel, GConf2-devel, startup-notification-devel on
|
(e.g. gtk2-devel, glib-devel, startup-notification-devel on
|
||||||
Fedora; also, remember to install the gnome-common package which is
|
Fedora; also, remember to install the gnome-common package which is
|
||||||
needed for building cvs versions of Gnome modules like Metacity) as
|
needed for building cvs versions of Gnome modules like Metacity) as
|
||||||
well as the standard development tools (gcc, autoconf, automake,
|
well as the standard development tools (gcc, autoconf, automake,
|
||||||
|
29
README
29
README
@ -18,8 +18,7 @@ COMPILING MUTTER
|
|||||||
You need GTK+ 2.2. For startup notification to work you need
|
You need GTK+ 2.2. For startup notification to work you need
|
||||||
libstartup-notification at
|
libstartup-notification at
|
||||||
http://www.freedesktop.org/software/startup-notification/ or on the
|
http://www.freedesktop.org/software/startup-notification/ or on the
|
||||||
GNOME ftp site. You also need GConf 1.2 (unless building a funky
|
GNOME ftp site.
|
||||||
extra-small embedded metacity with --disable-gconf, see below).
|
|
||||||
You need Clutter 1.0. You need gobject-introspection 0.6.3.
|
You need Clutter 1.0. You need gobject-introspection 0.6.3.
|
||||||
|
|
||||||
REPORTING BUGS AND SUBMITTING PATCHES
|
REPORTING BUGS AND SUBMITTING PATCHES
|
||||||
@ -59,25 +58,24 @@ MUTTER FEATURES
|
|||||||
and should work with KWin, fvwm2, and other EWMH-compliant WMs.)
|
and should work with KWin, fvwm2, and other EWMH-compliant WMs.)
|
||||||
|
|
||||||
- Has a simple theme system and a couple of extra themes come with it.
|
- Has a simple theme system and a couple of extra themes come with it.
|
||||||
Change themes via gconf-editor or gconftool or GNOME themes control
|
Change themes via gsettings:
|
||||||
panel:
|
gsettings set org.gnome.desktop.wm.preferences theme Crux
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/theme Crux
|
gsettings set org.gnome.desktop.wm.preferences theme Gorilla
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/theme Gorilla
|
gsettings set org.gnome.desktop.wm.preferences theme Atlanta
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/theme Atlanta
|
gsettings set org.gnome.desktop.wm.preferences theme Bright
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/theme Bright
|
|
||||||
|
|
||||||
See theme-format.txt for docs on the theme format. Use
|
See theme-format.txt for docs on the theme format. Use
|
||||||
metacity-theme-viewer to preview themes.
|
metacity-theme-viewer to preview themes.
|
||||||
|
|
||||||
- Change number of workspaces via gconf-editor or gconftool:
|
- Change number of workspaces via gsettings:
|
||||||
gconftool-2 --type=int --set /apps/metacity/general/num_workspaces 5
|
gsettings set org.gnome.desktop.wm.preferences num-workspaces 5
|
||||||
|
|
||||||
Can also change workspaces from GNOME 2 pager.
|
Can also change workspaces from GNOME 2 pager.
|
||||||
|
|
||||||
- Change focus mode:
|
- Change focus mode:
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/focus_mode mouse
|
gsettings set org.gnome.desktop.wm.preferences focus-mode mouse
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/focus_mode sloppy
|
gsettings set org.gnome.desktop.wm.preferences focus-mode sloppy
|
||||||
gconftool-2 --type=string --set /apps/metacity/general/focus_mode click
|
gsettings set org.gnome.desktop.wm.preferences focus-mode click
|
||||||
|
|
||||||
- Global keybinding defaults include:
|
- Global keybinding defaults include:
|
||||||
|
|
||||||
@ -92,10 +90,9 @@ MUTTER FEATURES
|
|||||||
|
|
||||||
Change keybindings for example:
|
Change keybindings for example:
|
||||||
|
|
||||||
unst gconftool-2 --type=string --set /apps/metacity/global_keybindings/switch_to_workspace_1 '<Alt>F1'
|
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 '[<Alt>F1]'
|
||||||
|
|
||||||
Also try the GNOME keyboard shortcuts control panel, or
|
Also try the GNOME keyboard shortcuts control panel.
|
||||||
gconf-editor.
|
|
||||||
|
|
||||||
- Window keybindings:
|
- Window keybindings:
|
||||||
|
|
||||||
|
33
configure.in
33
configure.in
@ -62,20 +62,13 @@ AC_CHECK_SIZEOF(__int64)
|
|||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
GTK_MIN_VERSION=3.3.3
|
GTK_MIN_VERSION=3.3.3
|
||||||
|
GIO_MIN_VERSION=2.25.10
|
||||||
CANBERRA_GTK=libcanberra-gtk3
|
CANBERRA_GTK=libcanberra-gtk3
|
||||||
CANBERRA_GTK_VERSION=0.26
|
CANBERRA_GTK_VERSION=0.26
|
||||||
|
|
||||||
MUTTER_PC_MODULES="gtk+-3.0 >= $GTK_MIN_VERSION pango >= 1.2.0 cairo >= 1.10.0"
|
MUTTER_PC_MODULES="gtk+-3.0 >= $GTK_MIN_VERSION gio-2.0 >= $GIO_MIN_VERSION pango >= 1.2.0 cairo >= 1.10.0 gsettings-desktop-schemas"
|
||||||
|
|
||||||
AC_ARG_ENABLE(gconf,
|
GLIB_GSETTINGS
|
||||||
AC_HELP_STRING([--disable-gconf],
|
|
||||||
[disable gconf usage, for embedded/size-sensitive non-GNOME builds]),,
|
|
||||||
enable_gconf=yes)
|
|
||||||
|
|
||||||
if test x$enable_gconf = xyes; then
|
|
||||||
AC_DEFINE(HAVE_GCONF,1,[Build with gconf support])
|
|
||||||
MUTTER_PC_MODULES="$MUTTER_PC_MODULES gconf-2.0 >= 1.2.0"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(verbose-mode,
|
AC_ARG_ENABLE(verbose-mode,
|
||||||
AC_HELP_STRING([--disable-verbose-mode],
|
AC_HELP_STRING([--disable-verbose-mode],
|
||||||
@ -400,18 +393,6 @@ fi
|
|||||||
|
|
||||||
AC_SUBST(GDK_PIXBUF_CSOURCE)
|
AC_SUBST(GDK_PIXBUF_CSOURCE)
|
||||||
|
|
||||||
if test x$enable_gconf = xyes; then
|
|
||||||
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
|
||||||
if test x"$GCONFTOOL" = xno; then
|
|
||||||
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_GCONF_SOURCE_2
|
|
||||||
else
|
|
||||||
GCONF_SCHEMAS_INSTALL_TRUE='#'
|
|
||||||
GCONF_SCHEMAS_INSTALL_FALSE=
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_PATH_PROG(ZENITY, zenity, no)
|
AC_PATH_PROG(ZENITY, zenity, no)
|
||||||
if test x"$ZENITY" = xno; then
|
if test x"$ZENITY" = xno; then
|
||||||
AC_MSG_ERROR([zenity not found in your path - needed for dialogs])
|
AC_MSG_ERROR([zenity not found in your path - needed for dialogs])
|
||||||
@ -511,13 +492,6 @@ po/Makefile.in
|
|||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
if test x$enable_gconf = xno; then
|
|
||||||
echo "*** WARNING WARNING WARNING WARNING WARNING"
|
|
||||||
echo "*** Building without GConf. This means there's no"
|
|
||||||
echo "*** way to change prefs except hacking source code."
|
|
||||||
echo "*** This is intended for embedded systems etc., not for normal use."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$enable_verbose_mode = xno; then
|
if test x$enable_verbose_mode = xno; then
|
||||||
echo "*** WARNING WARNING WARNING WARNING WARNING"
|
echo "*** WARNING WARNING WARNING WARNING WARNING"
|
||||||
echo "*** Building without verbose mode"
|
echo "*** Building without verbose mode"
|
||||||
@ -534,7 +508,6 @@ mutter-$VERSION
|
|||||||
source code location: ${srcdir}
|
source code location: ${srcdir}
|
||||||
compiler: ${CC}
|
compiler: ${CC}
|
||||||
|
|
||||||
GConf: ${enable_gconf}
|
|
||||||
XFree86 Xinerama: ${use_xfree_xinerama}
|
XFree86 Xinerama: ${use_xfree_xinerama}
|
||||||
Solaris Xinerama: ${use_solaris_xinerama}
|
Solaris Xinerama: ${use_solaris_xinerama}
|
||||||
Startup notification: ${have_startup_notification}
|
Startup notification: ${have_startup_notification}
|
||||||
|
@ -46,13 +46,13 @@ because the original program does not have a manual page.
|
|||||||
Restart \fBmutter\fP(1) which is running.
|
Restart \fBmutter\fP(1) which is running.
|
||||||
.TP
|
.TP
|
||||||
.B reload-theme
|
.B reload-theme
|
||||||
Reload a theme which is specified on gconf database.
|
Reload a theme which is specified on gsettings database.
|
||||||
.TP
|
.TP
|
||||||
.B enable-keybindings
|
.B enable-keybindings
|
||||||
Enable all of keybindings which is specified on gconf database.
|
Enable all of keybindings which is specified on gsettings database.
|
||||||
.TP
|
.TP
|
||||||
.B disable-keybindings
|
.B disable-keybindings
|
||||||
Disable all of keybindings which is specified on gconf database.
|
Disable all of keybindings which is specified on gsettings database.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR mutter (1)
|
.BR mutter (1)
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
|
@ -51,7 +51,7 @@ Print the version number.
|
|||||||
.B \-?, \-\-help
|
.B \-?, \-\-help
|
||||||
Show summary of options.
|
Show summary of options.
|
||||||
.SH CONFIGURATION
|
.SH CONFIGURATION
|
||||||
\fBmutter\fP configuration can be found under \fIPreferences\fP->\fIWindows\fP and \fIPreferences\fP->\fIKeyboard Shortcuts\fP on the menu-panel. Advanced configuration can be achieved directly through gconf editing (gconf-editor or gconftool-2).
|
\fBmutter\fP configuration can be found under \fIPreferences\fP->\fIWindows\fP and \fIPreferences\fP->\fIKeyboard Shortcuts\fP on the menu-panel. Advanced configuration can be achieved directly through gsettings.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR mutter-message (1)
|
.BR mutter-message (1)
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
|
@ -19,7 +19,7 @@ src/core/window-props.c
|
|||||||
src/core/xprops.c
|
src/core/xprops.c
|
||||||
src/mutter.desktop.in
|
src/mutter.desktop.in
|
||||||
src/mutter-wm.desktop.in
|
src/mutter-wm.desktop.in
|
||||||
src/mutter.schemas.in
|
src/org.gnome.mutter.gschema.xml.in
|
||||||
src/tools/mutter-message.c
|
src/tools/mutter-message.c
|
||||||
src/ui/frames.c
|
src/ui/frames.c
|
||||||
src/ui/menu.c
|
src/ui/menu.c
|
||||||
|
@ -226,7 +226,7 @@ typelib_DATA = Meta-$(api_version).typelib
|
|||||||
INTROSPECTION_GIRS = Meta-$(api_version).gir
|
INTROSPECTION_GIRS = Meta-$(api_version).gir
|
||||||
|
|
||||||
Meta-$(api_version).gir: libmutter.la
|
Meta-$(api_version).gir: libmutter.la
|
||||||
@META_GIR@_INCLUDES = GObject-2.0 Gdk-3.0 Gtk-3.0 Clutter-1.0 xlib-2.0 xfixes-4.0
|
@META_GIR@_INCLUDES = GObject-2.0 GDesktopEnums-3.0 Gdk-3.0 Gtk-3.0 Clutter-1.0 xlib-2.0 xfixes-4.0
|
||||||
@META_GIR@_PACKAGES = clutter-1.0 gtk+-3.0
|
@META_GIR@_PACKAGES = clutter-1.0 gtk+-3.0
|
||||||
@META_GIR@_CFLAGS = $(INCLUDES)
|
@META_GIR@_CFLAGS = $(INCLUDES)
|
||||||
@META_GIR@_LIBS = libmutter.la
|
@META_GIR@_LIBS = libmutter.la
|
||||||
@ -262,20 +262,12 @@ wmproperties_in_files=mutter-wm.desktop.in
|
|||||||
wmproperties_files=$(wmproperties_in_files:.desktop.in=.desktop)
|
wmproperties_files=$(wmproperties_in_files:.desktop.in=.desktop)
|
||||||
wmproperties_DATA = $(wmproperties_files)
|
wmproperties_DATA = $(wmproperties_files)
|
||||||
|
|
||||||
schemadir = $(GCONF_SCHEMA_FILE_DIR)
|
gsettings_SCHEMAS = org.gnome.mutter.gschema.xml
|
||||||
schema_in_files = mutter.schemas.in
|
|
||||||
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
|
|
||||||
|
|
||||||
@INTLTOOL_XML_NOMERGE_RULE@
|
@INTLTOOL_XML_NOMERGE_RULE@
|
||||||
|
@GSETTINGS_RULES@
|
||||||
|
|
||||||
@INTLTOOL_SCHEMAS_RULE@
|
convertdir = $(datadir)/GConf/gsettings
|
||||||
|
convert_DATA=$(srcdir)/mutter-schemas.convert
|
||||||
if GCONF_SCHEMAS_INSTALL
|
|
||||||
install-data-local:
|
|
||||||
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA)
|
|
||||||
else
|
|
||||||
install-data-local:
|
|
||||||
endif
|
|
||||||
|
|
||||||
IMAGES=stock_maximize.png stock_minimize.png stock_delete.png
|
IMAGES=stock_maximize.png stock_minimize.png stock_delete.png
|
||||||
VARIABLES=stock_maximize_data $(srcdir)/stock_maximize.png \
|
VARIABLES=stock_maximize_data $(srcdir)/stock_maximize.png \
|
||||||
@ -287,7 +279,7 @@ CLEANFILES = \
|
|||||||
inlinepixbufs.h \
|
inlinepixbufs.h \
|
||||||
mutter.desktop \
|
mutter.desktop \
|
||||||
mutter-wm.desktop \
|
mutter-wm.desktop \
|
||||||
mutter.schemas \
|
org.gnome.mutter.gschema.xml \
|
||||||
$(mutter_built_sources) \
|
$(mutter_built_sources) \
|
||||||
$(typelib_DATA) \
|
$(typelib_DATA) \
|
||||||
$(gir_DATA)
|
$(gir_DATA)
|
||||||
@ -304,7 +296,7 @@ EXTRA_DIST=$(desktopfiles_files) \
|
|||||||
$(IMAGES) \
|
$(IMAGES) \
|
||||||
$(desktopfiles_in_files) \
|
$(desktopfiles_in_files) \
|
||||||
$(wmproperties_in_files) \
|
$(wmproperties_in_files) \
|
||||||
$(schema_in_files) \
|
org.gnome.mutter.gschema.xml.in \
|
||||||
libmutter.pc.in \
|
libmutter.pc.in \
|
||||||
mutter-plugins.pc.in \
|
mutter-plugins.pc.in \
|
||||||
mutter-enum-types.h.in \
|
mutter-enum-types.h.in \
|
||||||
|
@ -55,12 +55,6 @@
|
|||||||
* explain this better)
|
* explain this better)
|
||||||
* or 0 if no flag applies.
|
* or 0 if no flag applies.
|
||||||
*
|
*
|
||||||
* 5) a string representing the default binding.
|
|
||||||
* If this is NULL, the action is unbound by default.
|
|
||||||
* Please use NULL and not "disabled".
|
|
||||||
* 6) a short description.
|
|
||||||
* It must be marked translatable (i.e. inside "_(...)").
|
|
||||||
*
|
|
||||||
* Don't try to do XML entity escaping anywhere in the strings.
|
* Don't try to do XML entity escaping anywhere in the strings.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -84,30 +78,18 @@
|
|||||||
/* convenience, since in this file they must always be set together */
|
/* convenience, since in this file they must always be set together */
|
||||||
#define REVERSES_AND_REVERSED (BINDING_REVERSES | BINDING_IS_REVERSED)
|
#define REVERSES_AND_REVERSED (BINDING_REVERSES | BINDING_IS_REVERSED)
|
||||||
|
|
||||||
keybind (switch_to_workspace_1, handle_switch_to_workspace, 0, 0, NULL,
|
keybind (switch-to-workspace-1, handle_switch_to_workspace, 0, 0)
|
||||||
_("Switch to workspace 1"))
|
keybind (switch-to-workspace-2, handle_switch_to_workspace, 1, 0)
|
||||||
keybind (switch_to_workspace_2, handle_switch_to_workspace, 1, 0, NULL,
|
keybind (switch-to-workspace-3, handle_switch_to_workspace, 2, 0)
|
||||||
_("Switch to workspace 2"))
|
keybind (switch-to-workspace-4, handle_switch_to_workspace, 3, 0)
|
||||||
keybind (switch_to_workspace_3, handle_switch_to_workspace, 2, 0, NULL,
|
keybind (switch-to-workspace-5, handle_switch_to_workspace, 4, 0)
|
||||||
_("Switch to workspace 3"))
|
keybind (switch-to-workspace-6, handle_switch_to_workspace, 5, 0)
|
||||||
keybind (switch_to_workspace_4, handle_switch_to_workspace, 3, 0, NULL,
|
keybind (switch-to-workspace-7, handle_switch_to_workspace, 6, 0)
|
||||||
_("Switch to workspace 4"))
|
keybind (switch-to-workspace-8, handle_switch_to_workspace, 7, 0)
|
||||||
keybind (switch_to_workspace_5, handle_switch_to_workspace, 4, 0, NULL,
|
keybind (switch-to-workspace-9, handle_switch_to_workspace, 8, 0)
|
||||||
_("Switch to workspace 5"))
|
keybind (switch-to-workspace-10, handle_switch_to_workspace, 9, 0)
|
||||||
keybind (switch_to_workspace_6, handle_switch_to_workspace, 5, 0, NULL,
|
keybind (switch-to-workspace-11, handle_switch_to_workspace, 10, 0)
|
||||||
_("Switch to workspace 6"))
|
keybind (switch-to-workspace-12, handle_switch_to_workspace, 11, 0)
|
||||||
keybind (switch_to_workspace_7, handle_switch_to_workspace, 6, 0, NULL,
|
|
||||||
_("Switch to workspace 7"))
|
|
||||||
keybind (switch_to_workspace_8, handle_switch_to_workspace, 7, 0, NULL,
|
|
||||||
_("Switch to workspace 8"))
|
|
||||||
keybind (switch_to_workspace_9, handle_switch_to_workspace, 8, 0, NULL,
|
|
||||||
_("Switch to workspace 9"))
|
|
||||||
keybind (switch_to_workspace_10, handle_switch_to_workspace, 9, 0, NULL,
|
|
||||||
_("Switch to workspace 10"))
|
|
||||||
keybind (switch_to_workspace_11, handle_switch_to_workspace, 10, 0, NULL,
|
|
||||||
_("Switch to workspace 11"))
|
|
||||||
keybind (switch_to_workspace_12, handle_switch_to_workspace, 11, 0, NULL,
|
|
||||||
_("Switch to workspace 12"))
|
|
||||||
|
|
||||||
/* META_MOTION_* are negative, and so distinct from workspace numbers,
|
/* META_MOTION_* are negative, and so distinct from workspace numbers,
|
||||||
* which are always zero or positive.
|
* which are always zero or positive.
|
||||||
@ -117,21 +99,17 @@ keybind (switch_to_workspace_12, handle_switch_to_workspace, 11, 0, NULL,
|
|||||||
* workspace.h, of course.
|
* workspace.h, of course.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
keybind (switch_to_workspace_left, handle_switch_to_workspace,
|
keybind (switch-to-workspace-left, handle_switch_to_workspace,
|
||||||
META_MOTION_LEFT, 0, "<Control><Alt>Left",
|
META_MOTION_LEFT, 0)
|
||||||
_("Switch to workspace on the left of the current workspace"))
|
|
||||||
|
|
||||||
keybind (switch_to_workspace_right, handle_switch_to_workspace,
|
keybind (switch-to-workspace-right, handle_switch_to_workspace,
|
||||||
META_MOTION_RIGHT, 0, "<Control><Alt>Right",
|
META_MOTION_RIGHT, 0)
|
||||||
_("Switch to workspace on the right of the current workspace"))
|
|
||||||
|
|
||||||
keybind (switch_to_workspace_up, handle_switch_to_workspace,
|
keybind (switch-to-workspace-up, handle_switch_to_workspace,
|
||||||
META_MOTION_UP, 0, "<Control><Alt>Up",
|
META_MOTION_UP, 0)
|
||||||
_("Switch to workspace above the current workspace"))
|
|
||||||
|
|
||||||
keybind (switch_to_workspace_down, handle_switch_to_workspace,
|
keybind (switch-to-workspace-down, handle_switch_to_workspace,
|
||||||
META_MOTION_DOWN, 0, "<Control><Alt>Down",
|
META_MOTION_DOWN, 0)
|
||||||
_("Switch to workspace below the current workspace"))
|
|
||||||
|
|
||||||
/***********************************/
|
/***********************************/
|
||||||
|
|
||||||
@ -145,45 +123,25 @@ keybind (switch_to_workspace_down, handle_switch_to_workspace,
|
|||||||
* same function checking a bit in the parameter for difference.
|
* same function checking a bit in the parameter for difference.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
keybind (switch_group, handle_switch, META_TAB_LIST_GROUP,
|
keybind (switch-group, handle_switch, META_TAB_LIST_GROUP, BINDING_REVERSES)
|
||||||
BINDING_REVERSES, "<Alt>Above_Tab",
|
keybind (switch-group-backward, handle_switch,
|
||||||
_("Move between windows of an application, using a popup window"))
|
META_TAB_LIST_GROUP, REVERSES_AND_REVERSED)
|
||||||
keybind (switch_group_backward, handle_switch, META_TAB_LIST_GROUP,
|
keybind (switch-windows, handle_switch, META_TAB_LIST_NORMAL, BINDING_REVERSES)
|
||||||
REVERSES_AND_REVERSED, NULL,
|
keybind (switch-windows-backward, handle_switch, META_TAB_LIST_NORMAL,
|
||||||
_("Move backward between windows of an application, "
|
REVERSES_AND_REVERSED)
|
||||||
"using a popup window"))
|
keybind (switch-panels, handle_switch, META_TAB_LIST_DOCKS, BINDING_REVERSES)
|
||||||
keybind (switch_windows, handle_switch, META_TAB_LIST_NORMAL,
|
keybind (switch-panels-backward, handle_switch, META_TAB_LIST_DOCKS,
|
||||||
BINDING_REVERSES, "<Alt>Tab",
|
REVERSES_AND_REVERSED)
|
||||||
_("Move between windows, using a popup window"))
|
|
||||||
keybind (switch_windows_backward, handle_switch, META_TAB_LIST_NORMAL,
|
|
||||||
REVERSES_AND_REVERSED, NULL,
|
|
||||||
_("Move backward between windows, using a popup window"))
|
|
||||||
keybind (switch_panels, handle_switch, META_TAB_LIST_DOCKS,
|
|
||||||
BINDING_REVERSES, "<Control><Alt>Tab",
|
|
||||||
_("Move between panels and the desktop, using a popup window"))
|
|
||||||
keybind (switch_panels_backward, handle_switch, META_TAB_LIST_DOCKS,
|
|
||||||
REVERSES_AND_REVERSED, NULL,
|
|
||||||
_("Move backward between panels and the desktop, "
|
|
||||||
"using a popup window"))
|
|
||||||
|
|
||||||
keybind (cycle_group, handle_cycle, META_TAB_LIST_GROUP,
|
keybind (cycle-group, handle_cycle, META_TAB_LIST_GROUP, BINDING_REVERSES)
|
||||||
BINDING_REVERSES, "<Alt>F6",
|
keybind (cycle-group-backward, handle_cycle, META_TAB_LIST_GROUP,
|
||||||
_("Move between windows of an application immediately"))
|
REVERSES_AND_REVERSED)
|
||||||
keybind (cycle_group_backward, handle_cycle, META_TAB_LIST_GROUP,
|
keybind (cycle-windows, handle_cycle, META_TAB_LIST_NORMAL, BINDING_REVERSES)
|
||||||
REVERSES_AND_REVERSED, NULL,
|
keybind (cycle-windows-backward, handle_cycle, META_TAB_LIST_NORMAL,
|
||||||
_("Move backward between windows of an application immediately"))
|
REVERSES_AND_REVERSED)
|
||||||
keybind (cycle_windows, handle_cycle, META_TAB_LIST_NORMAL,
|
keybind (cycle-panels, handle_cycle, META_TAB_LIST_DOCKS, BINDING_REVERSES)
|
||||||
BINDING_REVERSES, "<Alt>Escape",
|
keybind (cycle-panels-backward, handle_cycle, META_TAB_LIST_DOCKS,
|
||||||
_("Move between windows immediately"))
|
REVERSES_AND_REVERSED)
|
||||||
keybind (cycle_windows_backward, handle_cycle, META_TAB_LIST_NORMAL,
|
|
||||||
REVERSES_AND_REVERSED, NULL,
|
|
||||||
_("Move backward between windows immediately"))
|
|
||||||
keybind (cycle_panels, handle_cycle, META_TAB_LIST_DOCKS,
|
|
||||||
BINDING_REVERSES, "<Control><Alt>Escape",
|
|
||||||
_("Move between panels and the desktop immediately"))
|
|
||||||
keybind (cycle_panels_backward, handle_cycle, META_TAB_LIST_DOCKS,
|
|
||||||
REVERSES_AND_REVERSED, NULL,
|
|
||||||
_("Move backward between panels and the desktop immediately"))
|
|
||||||
|
|
||||||
/***********************************/
|
/***********************************/
|
||||||
|
|
||||||
@ -192,71 +150,20 @@ keybind (cycle_panels_backward, handle_cycle, META_TAB_LIST_DOCKS,
|
|||||||
* grab is in effect, they are invoked for releasing the primary modifier
|
* grab is in effect, they are invoked for releasing the primary modifier
|
||||||
* or pressing some unbound key, respectively.
|
* or pressing some unbound key, respectively.
|
||||||
*/
|
*/
|
||||||
keybind (tab_popup_select, handle_tab_popup_select, 0, 0, NULL,
|
keybind (tab-popup-select, handle_tab_popup_select, 0, 0)
|
||||||
"Select window from tab popup")
|
keybind (tab-popup-cancel, handle_tab_popup_cancel, 0, 0)
|
||||||
keybind (tab_popup_cancel, handle_tab_popup_cancel, 0, 0, NULL,
|
|
||||||
"Cancel tab popup")
|
|
||||||
|
|
||||||
/***********************************/
|
/***********************************/
|
||||||
|
|
||||||
keybind (show_desktop, handle_show_desktop, 0, 0, "<Control><Alt>d",
|
keybind (show-desktop, handle_show_desktop, 0, 0)
|
||||||
_("Hide all normal windows and set focus to the desktop"))
|
keybind (panel-main-menu, handle_panel,
|
||||||
keybind (panel_main_menu, handle_panel,
|
META_KEYBINDING_ACTION_PANEL_MAIN_MENU, 0)
|
||||||
META_KEYBINDING_ACTION_PANEL_MAIN_MENU, 0, "<Alt>F1",
|
keybind (panel-run-dialog, handle_panel,
|
||||||
_("Show the panel's main menu"))
|
META_KEYBINDING_ACTION_PANEL_RUN_DIALOG, 0)
|
||||||
keybind (panel_run_dialog, handle_panel,
|
keybind (toggle-recording, handle_toggle_recording, 0, 0)
|
||||||
META_KEYBINDING_ACTION_PANEL_RUN_DIALOG, 0, "<Alt>F2",
|
|
||||||
_("Show the panel's \"Run Application\" dialog box"))
|
|
||||||
keybind (toggle_recording, handle_toggle_recording, 0, 0, "<Control><Shift><Alt>r",
|
|
||||||
_("Start or stop recording the session"))
|
|
||||||
|
|
||||||
/* Yes, the param is offset by one. Historical reasons. (Maybe worth fixing
|
/* FIXME: No description because this is undocumented */
|
||||||
* at some point.) The description is NULL here because the stanza is
|
keybind (set-spew-mark, handle_set_spew_mark, 0, 0)
|
||||||
* irregularly shaped in mutter.schemas.in. This will probably be fixed
|
|
||||||
* as well.
|
|
||||||
*/
|
|
||||||
keybind (run_command_1, handle_run_command, 0, 0, NULL, NULL)
|
|
||||||
keybind (run_command_2, handle_run_command, 1, 0, NULL, NULL)
|
|
||||||
keybind (run_command_3, handle_run_command, 2, 0, NULL, NULL)
|
|
||||||
keybind (run_command_4, handle_run_command, 3, 0, NULL, NULL)
|
|
||||||
keybind (run_command_5, handle_run_command, 4, 0, NULL, NULL)
|
|
||||||
keybind (run_command_6, handle_run_command, 5, 0, NULL, NULL)
|
|
||||||
keybind (run_command_7, handle_run_command, 6, 0, NULL, NULL)
|
|
||||||
keybind (run_command_8, handle_run_command, 7, 0, NULL, NULL)
|
|
||||||
keybind (run_command_9, handle_run_command, 8, 0, NULL, NULL)
|
|
||||||
keybind (run_command_10, handle_run_command, 9, 0, NULL, NULL)
|
|
||||||
keybind (run_command_11, handle_run_command, 10, 0, NULL, NULL)
|
|
||||||
keybind (run_command_12, handle_run_command, 11, 0, NULL, NULL)
|
|
||||||
keybind (run_command_13, handle_run_command, 12, 0, NULL, NULL)
|
|
||||||
keybind (run_command_14, handle_run_command, 13, 0, NULL, NULL)
|
|
||||||
keybind (run_command_15, handle_run_command, 14, 0, NULL, NULL)
|
|
||||||
keybind (run_command_16, handle_run_command, 15, 0, NULL, NULL)
|
|
||||||
keybind (run_command_17, handle_run_command, 16, 0, NULL, NULL)
|
|
||||||
keybind (run_command_18, handle_run_command, 17, 0, NULL, NULL)
|
|
||||||
keybind (run_command_19, handle_run_command, 18, 0, NULL, NULL)
|
|
||||||
keybind (run_command_20, handle_run_command, 19, 0, NULL, NULL)
|
|
||||||
keybind (run_command_21, handle_run_command, 20, 0, NULL, NULL)
|
|
||||||
keybind (run_command_22, handle_run_command, 21, 0, NULL, NULL)
|
|
||||||
keybind (run_command_23, handle_run_command, 22, 0, NULL, NULL)
|
|
||||||
keybind (run_command_24, handle_run_command, 23, 0, NULL, NULL)
|
|
||||||
keybind (run_command_25, handle_run_command, 24, 0, NULL, NULL)
|
|
||||||
keybind (run_command_26, handle_run_command, 25, 0, NULL, NULL)
|
|
||||||
keybind (run_command_27, handle_run_command, 26, 0, NULL, NULL)
|
|
||||||
keybind (run_command_28, handle_run_command, 27, 0, NULL, NULL)
|
|
||||||
keybind (run_command_29, handle_run_command, 28, 0, NULL, NULL)
|
|
||||||
keybind (run_command_30, handle_run_command, 29, 0, NULL, NULL)
|
|
||||||
keybind (run_command_31, handle_run_command, 30, 0, NULL, NULL)
|
|
||||||
keybind (run_command_32, handle_run_command, 31, 0, NULL, NULL)
|
|
||||||
|
|
||||||
keybind (run_command_screenshot, handle_run_command, 32, 0, "Print",
|
|
||||||
_("Take a screenshot"))
|
|
||||||
keybind (run_command_window_screenshot, handle_run_command, 33, 0,"<Alt>Print",
|
|
||||||
_("Take a screenshot of a window"))
|
|
||||||
|
|
||||||
keybind (run_command_terminal, handle_run_terminal, 0, 0, NULL, _("Run a terminal"))
|
|
||||||
|
|
||||||
/* No description because this is undocumented */
|
|
||||||
keybind (set_spew_mark, handle_set_spew_mark, 0, 0, NULL, NULL)
|
|
||||||
|
|
||||||
#undef REVERSES_AND_REVERSED
|
#undef REVERSES_AND_REVERSED
|
||||||
|
|
||||||
@ -266,70 +173,34 @@ keybind (set_spew_mark, handle_set_spew_mark, 0, 0, NULL, NULL)
|
|||||||
* if no window is active.
|
* if no window is active.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
keybind (activate_window_menu, handle_activate_window_menu, 0,
|
keybind (activate-window-menu, handle_activate_window_menu, 0,
|
||||||
BINDING_PER_WINDOW, "<Alt>space",
|
BINDING_PER_WINDOW)
|
||||||
_("Activate the window menu"))
|
keybind (toggle-fullscreen, handle_toggle_fullscreen, 0, BINDING_PER_WINDOW)
|
||||||
keybind (toggle_fullscreen, handle_toggle_fullscreen, 0, BINDING_PER_WINDOW,
|
keybind (toggle-maximized, handle_toggle_maximized, 0, BINDING_PER_WINDOW)
|
||||||
NULL,
|
keybind (toggle-above, handle_toggle_above, 0, BINDING_PER_WINDOW)
|
||||||
_("Toggle fullscreen mode"))
|
keybind (maximize, handle_maximize, 0, BINDING_PER_WINDOW)
|
||||||
keybind (toggle_maximized, handle_toggle_maximized, 0, BINDING_PER_WINDOW, "<Alt>F10",
|
keybind (unmaximize, handle_unmaximize, 0, BINDING_PER_WINDOW)
|
||||||
_("Toggle maximization state"))
|
keybind (toggle-shaded, handle_toggle_shaded, 0, BINDING_PER_WINDOW)
|
||||||
keybind (toggle_above, handle_toggle_above, 0, BINDING_PER_WINDOW, NULL,
|
keybind (minimize, handle_minimize, 0, BINDING_PER_WINDOW)
|
||||||
_("Toggle whether a window will always be visible over other windows"))
|
keybind (close, handle_close, 0, BINDING_PER_WINDOW)
|
||||||
keybind (maximize, handle_maximize, 0, BINDING_PER_WINDOW, NULL,
|
keybind (begin-move, handle_begin_move, 0, BINDING_PER_WINDOW)
|
||||||
_("Maximize window"))
|
keybind (begin-resize, handle_begin_resize, 0, BINDING_PER_WINDOW)
|
||||||
keybind (unmaximize, handle_unmaximize, 0, BINDING_PER_WINDOW, "<Alt>F5",
|
keybind (toggle-on-all-workspaces, handle_toggle_on_all_workspaces, 0,
|
||||||
_("Restore window"))
|
BINDING_PER_WINDOW)
|
||||||
keybind (toggle_shaded, handle_toggle_shaded, 0, BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Toggle shaded state"))
|
keybind (move-to-workspace-1, handle_move_to_workspace, 0, BINDING_PER_WINDOW)
|
||||||
keybind (minimize, handle_minimize, 0, BINDING_PER_WINDOW, "<Alt>F9",
|
keybind (move-to-workspace-2, handle_move_to_workspace, 1, BINDING_PER_WINDOW)
|
||||||
_("Minimize window"))
|
keybind (move-to-workspace-3, handle_move_to_workspace, 2, BINDING_PER_WINDOW)
|
||||||
keybind (close, handle_close, 0, BINDING_PER_WINDOW, "<Alt>F4",
|
keybind (move-to-workspace-4, handle_move_to_workspace, 3, BINDING_PER_WINDOW)
|
||||||
_("Close window"))
|
keybind (move-to-workspace-5, handle_move_to_workspace, 4, BINDING_PER_WINDOW)
|
||||||
keybind (begin_move, handle_begin_move, 0, BINDING_PER_WINDOW, "<Alt>F7",
|
keybind (move-to-workspace-6, handle_move_to_workspace, 5, BINDING_PER_WINDOW)
|
||||||
_("Move window"))
|
keybind (move-to-workspace-7, handle_move_to_workspace, 6, BINDING_PER_WINDOW)
|
||||||
keybind (begin_resize, handle_begin_resize, 0, BINDING_PER_WINDOW, "<Alt>F8",
|
keybind (move-to-workspace-8, handle_move_to_workspace, 7, BINDING_PER_WINDOW)
|
||||||
_("Resize window"))
|
keybind (move-to-workspace-9, handle_move_to_workspace, 8, BINDING_PER_WINDOW)
|
||||||
keybind (toggle_on_all_workspaces, handle_toggle_on_all_workspaces, 0,
|
keybind (move-to-workspace-10, handle_move_to_workspace, 9, BINDING_PER_WINDOW)
|
||||||
BINDING_PER_WINDOW, NULL,
|
keybind (move-to-workspace-11, handle_move_to_workspace, 10, BINDING_PER_WINDOW)
|
||||||
_("Toggle whether window is on all workspaces or just one"))
|
keybind (move-to-workspace-12, handle_move_to_workspace, 11, BINDING_PER_WINDOW)
|
||||||
|
|
||||||
keybind (move_to_workspace_1, handle_move_to_workspace, 0, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 1"))
|
|
||||||
keybind (move_to_workspace_2, handle_move_to_workspace, 1, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 2"))
|
|
||||||
keybind (move_to_workspace_3, handle_move_to_workspace, 2, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 3"))
|
|
||||||
keybind (move_to_workspace_4, handle_move_to_workspace, 3, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 4"))
|
|
||||||
keybind (move_to_workspace_5, handle_move_to_workspace, 4, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 5"))
|
|
||||||
keybind (move_to_workspace_6, handle_move_to_workspace, 5, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 6"))
|
|
||||||
keybind (move_to_workspace_7, handle_move_to_workspace, 6, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 7"))
|
|
||||||
keybind (move_to_workspace_8, handle_move_to_workspace, 7, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 8"))
|
|
||||||
keybind (move_to_workspace_9, handle_move_to_workspace, 8, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 9"))
|
|
||||||
keybind (move_to_workspace_10, handle_move_to_workspace, 9, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 10"))
|
|
||||||
keybind (move_to_workspace_11, handle_move_to_workspace, 10, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 11"))
|
|
||||||
keybind (move_to_workspace_12, handle_move_to_workspace, 11, BINDING_PER_WINDOW,
|
|
||||||
NULL,
|
|
||||||
_("Move window to workspace 12"))
|
|
||||||
|
|
||||||
/* META_MOTION_* are negative, and so distinct from workspace numbers,
|
/* META_MOTION_* are negative, and so distinct from workspace numbers,
|
||||||
* which are always zero or positive.
|
* which are always zero or positive.
|
||||||
@ -339,62 +210,34 @@ keybind (move_to_workspace_12, handle_move_to_workspace, 11, BINDING_PER_WINDOW,
|
|||||||
* workspace.h, of course.
|
* workspace.h, of course.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
keybind (move_to_workspace_left, handle_move_to_workspace,
|
keybind (move-to-workspace-left, handle_move_to_workspace,
|
||||||
META_MOTION_LEFT, BINDING_PER_WINDOW, "<Control><Shift><Alt>Left",
|
META_MOTION_LEFT, BINDING_PER_WINDOW)
|
||||||
_("Move window one workspace to the left"))
|
keybind (move-to-workspace-right, handle_move_to_workspace,
|
||||||
keybind (move_to_workspace_right, handle_move_to_workspace,
|
META_MOTION_RIGHT, BINDING_PER_WINDOW)
|
||||||
META_MOTION_RIGHT, BINDING_PER_WINDOW, "<Control><Shift><Alt>Right",
|
keybind (move-to-workspace-up, handle_move_to_workspace,
|
||||||
_("Move window one workspace to the right"))
|
META_MOTION_UP, BINDING_PER_WINDOW)
|
||||||
keybind (move_to_workspace_up, handle_move_to_workspace,
|
keybind (move-to-workspace-down, handle_move_to_workspace,
|
||||||
META_MOTION_UP, BINDING_PER_WINDOW, "<Control><Shift><Alt>Up",
|
META_MOTION_DOWN, BINDING_PER_WINDOW)
|
||||||
_("Move window one workspace up"))
|
|
||||||
keybind (move_to_workspace_down, handle_move_to_workspace,
|
|
||||||
META_MOTION_DOWN, BINDING_PER_WINDOW, "<Control><Shift><Alt>Down",
|
|
||||||
_("Move window one workspace down"))
|
|
||||||
|
|
||||||
keybind (raise_or_lower, handle_raise_or_lower, 0, BINDING_PER_WINDOW, NULL,
|
keybind (raise-or-lower, handle_raise_or_lower, 0, BINDING_PER_WINDOW)
|
||||||
_("Raise window if it's covered by another window, otherwise lower it"))
|
keybind (raise, handle_raise, 0, BINDING_PER_WINDOW)
|
||||||
keybind (raise, handle_raise, 0, BINDING_PER_WINDOW, NULL,
|
keybind (lower, handle_lower, 0, BINDING_PER_WINDOW)
|
||||||
_("Raise window above other windows"))
|
|
||||||
keybind (lower, handle_lower, 0, BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Lower window below other windows"))
|
|
||||||
|
|
||||||
keybind (maximize_vertically, handle_maximize_vertically, 0,
|
keybind (maximize-vertically, handle_maximize_vertically, 0, BINDING_PER_WINDOW)
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Maximize window vertically"))
|
|
||||||
|
|
||||||
keybind (maximize_horizontally, handle_maximize_horizontally, 0,
|
keybind (maximize-horizontally, handle_maximize_horizontally, 0,
|
||||||
BINDING_PER_WINDOW, NULL,
|
BINDING_PER_WINDOW)
|
||||||
_("Maximize window horizontally"))
|
|
||||||
|
|
||||||
keybind (move_to_corner_nw, handle_move_to_corner_nw, 0,
|
keybind (move-to-corner-nw, handle_move_to_corner_nw, 0, BINDING_PER_WINDOW)
|
||||||
BINDING_PER_WINDOW, NULL,
|
keybind (move-to-corner-ne, handle_move_to_corner_ne, 0, BINDING_PER_WINDOW)
|
||||||
_("Move window to north-west (top left) corner"))
|
keybind (move-to-corner-sw, handle_move_to_corner_sw, 0, BINDING_PER_WINDOW)
|
||||||
keybind (move_to_corner_ne, handle_move_to_corner_ne, 0,
|
keybind (move-to-corner-se, handle_move_to_corner_se, 0, BINDING_PER_WINDOW)
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Move window to north-east (top right) corner"))
|
|
||||||
keybind (move_to_corner_sw, handle_move_to_corner_sw, 0,
|
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Move window to south-west (bottom left) corner"))
|
|
||||||
keybind (move_to_corner_se, handle_move_to_corner_se, 0,
|
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Move window to south-east (bottom right) corner"))
|
|
||||||
|
|
||||||
keybind (move_to_side_n, handle_move_to_side_n, 0,
|
keybind (move-to-side-n, handle_move_to_side_n, 0, BINDING_PER_WINDOW)
|
||||||
BINDING_PER_WINDOW, NULL,
|
keybind (move-to-side-s, handle_move_to_side_s, 0, BINDING_PER_WINDOW)
|
||||||
_("Move window to north (top) side of screen"))
|
keybind (move-to-side-e, handle_move_to_side_e, 0, BINDING_PER_WINDOW)
|
||||||
keybind (move_to_side_s, handle_move_to_side_s, 0,
|
keybind (move-to-side-w, handle_move_to_side_w, 0, BINDING_PER_WINDOW)
|
||||||
BINDING_PER_WINDOW, NULL,
|
keybind (move-to-center, handle_move_to_center, 0, BINDING_PER_WINDOW)
|
||||||
_("Move window to south (bottom) side of screen"))
|
|
||||||
keybind (move_to_side_e, handle_move_to_side_e, 0,
|
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Move window to east (right) side of screen"))
|
|
||||||
keybind (move_to_side_w, handle_move_to_side_w, 0,
|
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Move window to west (left) side of screen"))
|
|
||||||
keybind (move_to_center, handle_move_to_center, 0,
|
|
||||||
BINDING_PER_WINDOW, NULL,
|
|
||||||
_("Move window to center of screen"))
|
|
||||||
|
|
||||||
/* eof all-keybindings.h */
|
/* eof all-keybindings.h */
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ bell_flash_screen (MetaDisplay *display,
|
|||||||
XFreeGC (display->xdisplay, gc);
|
XFreeGC (display->xdisplay, gc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meta_prefs_get_focus_mode () != META_FOCUS_MODE_CLICK &&
|
if (meta_prefs_get_focus_mode () != G_DESKTOP_FOCUS_MODE_CLICK &&
|
||||||
!display->mouse_mode)
|
!display->mouse_mode)
|
||||||
meta_display_increment_focus_sentinel (display);
|
meta_display_increment_focus_sentinel (display);
|
||||||
XFlush (display->xdisplay);
|
XFlush (display->xdisplay);
|
||||||
@ -277,13 +277,13 @@ bell_visual_notify (MetaDisplay *display,
|
|||||||
{
|
{
|
||||||
switch (meta_prefs_get_visual_bell_type ())
|
switch (meta_prefs_get_visual_bell_type ())
|
||||||
{
|
{
|
||||||
case META_VISUAL_BELL_FULLSCREEN_FLASH:
|
case G_DESKTOP_VISUAL_BELL_FULLSCREEN_FLASH:
|
||||||
bell_flash_fullscreen (display, xkb_ev);
|
bell_flash_fullscreen (display, xkb_ev);
|
||||||
break;
|
break;
|
||||||
case META_VISUAL_BELL_FRAME_FLASH:
|
case G_DESKTOP_VISUAL_BELL_FRAME_FLASH:
|
||||||
bell_flash_frame (display, xkb_ev); /* does nothing yet */
|
bell_flash_frame (display, xkb_ev); /* does nothing yet */
|
||||||
break;
|
break;
|
||||||
case META_VISUAL_BELL_INVALID:
|
case G_DESKTOP_VISUAL_BELL_NONE:
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -293,8 +293,7 @@ void
|
|||||||
meta_bell_notify (MetaDisplay *display,
|
meta_bell_notify (MetaDisplay *display,
|
||||||
XkbAnyEvent *xkb_ev)
|
XkbAnyEvent *xkb_ev)
|
||||||
{
|
{
|
||||||
/* flash something */
|
/* flash something if appropriate */
|
||||||
if (meta_prefs_get_visual_bell ())
|
|
||||||
bell_visual_notify (display, xkb_ev);
|
bell_visual_notify (display, xkb_ev);
|
||||||
|
|
||||||
#ifdef HAVE_LIBCANBERRA
|
#ifdef HAVE_LIBCANBERRA
|
||||||
|
@ -212,7 +212,7 @@ lower_window_and_transients (MetaWindow *window,
|
|||||||
|
|
||||||
meta_window_foreach_transient (window, lower_window_and_transients, NULL);
|
meta_window_foreach_transient (window, lower_window_and_transients, NULL);
|
||||||
|
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK &&
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK &&
|
||||||
meta_prefs_get_raise_on_click ())
|
meta_prefs_get_raise_on_click ())
|
||||||
{
|
{
|
||||||
/* Move window to the back of the focusing workspace's MRU list.
|
/* Move window to the back of the focusing workspace's MRU list.
|
||||||
@ -538,70 +538,70 @@ meta_core_get_menu_accelerator (MetaMenuOp menu_op,
|
|||||||
break;
|
break;
|
||||||
case META_MENU_OP_UNSTICK:
|
case META_MENU_OP_UNSTICK:
|
||||||
case META_MENU_OP_STICK:
|
case META_MENU_OP_STICK:
|
||||||
name = "toggle_on_all_workspaces";
|
name = "toggle-on-all-workspaces";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_ABOVE:
|
case META_MENU_OP_ABOVE:
|
||||||
case META_MENU_OP_UNABOVE:
|
case META_MENU_OP_UNABOVE:
|
||||||
name = "toggle_above";
|
name = "toggle-above";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_WORKSPACES:
|
case META_MENU_OP_WORKSPACES:
|
||||||
switch (workspace)
|
switch (workspace)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
name = "move_to_workspace_1";
|
name = "move-to-workspace-1";
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
name = "move_to_workspace_2";
|
name = "move-to-workspace-2";
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
name = "move_to_workspace_3";
|
name = "move-to-workspace-3";
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
name = "move_to_workspace_4";
|
name = "move-to-workspace-4";
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
name = "move_to_workspace_5";
|
name = "move-to-workspace-5";
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
name = "move_to_workspace_6";
|
name = "move-to-workspace-6";
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
name = "move_to_workspace_7";
|
name = "move-to-workspace-7";
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
name = "move_to_workspace_8";
|
name = "move-to-workspace-8";
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
name = "move_to_workspace_9";
|
name = "move-to-workspace-9";
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
name = "move_to_workspace_10";
|
name = "move-to-workspace-10";
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
name = "move_to_workspace_11";
|
name = "move-to-workspace-11";
|
||||||
break;
|
break;
|
||||||
case 12:
|
case 12:
|
||||||
name = "move_to_workspace_12";
|
name = "move-to-workspace-12";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_MOVE:
|
case META_MENU_OP_MOVE:
|
||||||
name = "begin_move";
|
name = "begin-move";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_RESIZE:
|
case META_MENU_OP_RESIZE:
|
||||||
name = "begin_resize";
|
name = "begin-resize";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_MOVE_LEFT:
|
case META_MENU_OP_MOVE_LEFT:
|
||||||
name = "move_to_workspace_left";
|
name = "move-to-workspace-left";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_MOVE_RIGHT:
|
case META_MENU_OP_MOVE_RIGHT:
|
||||||
name = "move_to_workspace_right";
|
name = "move-to-workspace-right";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_MOVE_UP:
|
case META_MENU_OP_MOVE_UP:
|
||||||
name = "move_to_workspace_up";
|
name = "move-to-workspace-up";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_MOVE_DOWN:
|
case META_MENU_OP_MOVE_DOWN:
|
||||||
name = "move_to_workspace_down";
|
name = "move-to-workspace-down";
|
||||||
break;
|
break;
|
||||||
case META_MENU_OP_RECOVER:
|
case META_MENU_OP_RECOVER:
|
||||||
/* No keybinding for this one */
|
/* No keybinding for this one */
|
||||||
|
@ -1921,7 +1921,7 @@ event_callback (XEvent *event,
|
|||||||
* in application-based mode, and the different
|
* in application-based mode, and the different
|
||||||
* app is not a dock or desktop, eat the focus click.
|
* app is not a dock or desktop, eat the focus click.
|
||||||
*/
|
*/
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK &&
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK &&
|
||||||
meta_prefs_get_application_based () &&
|
meta_prefs_get_application_based () &&
|
||||||
!window->has_focus &&
|
!window->has_focus &&
|
||||||
window->type != META_WINDOW_DOCK &&
|
window->type != META_WINDOW_DOCK &&
|
||||||
@ -2009,8 +2009,8 @@ event_callback (XEvent *event,
|
|||||||
{
|
{
|
||||||
switch (meta_prefs_get_focus_mode ())
|
switch (meta_prefs_get_focus_mode ())
|
||||||
{
|
{
|
||||||
case META_FOCUS_MODE_SLOPPY:
|
case G_DESKTOP_FOCUS_MODE_SLOPPY:
|
||||||
case META_FOCUS_MODE_MOUSE:
|
case G_DESKTOP_FOCUS_MODE_MOUSE:
|
||||||
display->mouse_mode = TRUE;
|
display->mouse_mode = TRUE;
|
||||||
if (window->type != META_WINDOW_DOCK &&
|
if (window->type != META_WINDOW_DOCK &&
|
||||||
window->type != META_WINDOW_DESKTOP)
|
window->type != META_WINDOW_DESKTOP)
|
||||||
@ -2048,7 +2048,7 @@ event_callback (XEvent *event,
|
|||||||
* alternative mechanism works great.
|
* alternative mechanism works great.
|
||||||
*/
|
*/
|
||||||
if (window->type == META_WINDOW_DESKTOP &&
|
if (window->type == META_WINDOW_DESKTOP &&
|
||||||
meta_prefs_get_focus_mode() == META_FOCUS_MODE_MOUSE &&
|
meta_prefs_get_focus_mode() == G_DESKTOP_FOCUS_MODE_MOUSE &&
|
||||||
display->expected_focus_window != NULL)
|
display->expected_focus_window != NULL)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_FOCUS,
|
meta_topic (META_DEBUG_FOCUS,
|
||||||
@ -2060,7 +2060,7 @@ event_callback (XEvent *event,
|
|||||||
event->xcrossing.time);
|
event->xcrossing.time);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case META_FOCUS_MODE_CLICK:
|
case G_DESKTOP_FOCUS_MODE_CLICK:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4003,7 +4003,7 @@ meta_display_grab_focus_window_button (MetaDisplay *display,
|
|||||||
* focus window may not be raised, and who wants to think about
|
* focus window may not be raised, and who wants to think about
|
||||||
* mouse focus anyway.
|
* mouse focus anyway.
|
||||||
*/
|
*/
|
||||||
if (meta_prefs_get_focus_mode () != META_FOCUS_MODE_CLICK)
|
if (meta_prefs_get_focus_mode () != G_DESKTOP_FOCUS_MODE_CLICK)
|
||||||
{
|
{
|
||||||
meta_verbose (" (well, not grabbing since not in click to focus mode)\n");
|
meta_verbose (" (well, not grabbing since not in click to focus mode)\n");
|
||||||
return;
|
return;
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
static gboolean all_bindings_disabled = FALSE;
|
static gboolean all_bindings_disabled = FALSE;
|
||||||
|
|
||||||
/* Prototypes for handlers */
|
/* Prototypes for handlers */
|
||||||
#define keybind(name, handler, param, flags, stroke, description) \
|
#define keybind(name, handler, param, flags) \
|
||||||
static void \
|
static void \
|
||||||
handler (MetaDisplay *display,\
|
handler (MetaDisplay *display,\
|
||||||
MetaScreen *screen,\
|
MetaScreen *screen,\
|
||||||
@ -103,7 +103,7 @@ static gboolean process_workspace_switch_grab (MetaDisplay *display,
|
|||||||
static void regrab_key_bindings (MetaDisplay *display);
|
static void regrab_key_bindings (MetaDisplay *display);
|
||||||
|
|
||||||
|
|
||||||
#define keybind(name, handler, param, flags, stroke, description) \
|
#define keybind(name, handler, param, flags) \
|
||||||
{ #name, handler, handler, param, flags, NULL, NULL },
|
{ #name, handler, handler, param, flags, NULL, NULL },
|
||||||
static MetaKeyHandler key_handlers[] = {
|
static MetaKeyHandler key_handlers[] = {
|
||||||
#include "all-keybindings.h"
|
#include "all-keybindings.h"
|
||||||
@ -2183,7 +2183,7 @@ process_tab_grab (MetaDisplay *display,
|
|||||||
{
|
{
|
||||||
if (end_keyboard_grab (display, event->xkey.keycode))
|
if (end_keyboard_grab (display, event->xkey.keycode))
|
||||||
{
|
{
|
||||||
invoke_handler_by_name (display, screen, "tab_popup_select", NULL, event);
|
invoke_handler_by_name (display, screen, "tab-popup-select", NULL, event);
|
||||||
|
|
||||||
/* We return FALSE to end the grab; if the handler ended the grab itself
|
/* We return FALSE to end the grab; if the handler ended the grab itself
|
||||||
* that will be a noop. If the handler didn't end the grab, then it's a
|
* that will be a noop. If the handler didn't end the grab, then it's a
|
||||||
@ -2239,7 +2239,7 @@ process_tab_grab (MetaDisplay *display,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Some unhandled key press */
|
/* Some unhandled key press */
|
||||||
invoke_handler_by_name (display, screen, "tab_popup_cancel", NULL, event);
|
invoke_handler_by_name (display, screen, "tab-popup-cancel", NULL, event);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2496,138 +2496,6 @@ handle_switch_to_workspace (MetaDisplay *display,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
error_on_command (int command_index,
|
|
||||||
const char *command,
|
|
||||||
const char *message,
|
|
||||||
MetaScreen *screen,
|
|
||||||
guint32 timestamp)
|
|
||||||
{
|
|
||||||
if (command_index < 0)
|
|
||||||
meta_warning ("Error on terminal command \"%s\": %s\n", command, message);
|
|
||||||
else
|
|
||||||
meta_warning ("Error on command %d \"%s\": %s\n",
|
|
||||||
command_index, command, message);
|
|
||||||
|
|
||||||
/*
|
|
||||||
mutter-dialog said:
|
|
||||||
|
|
||||||
FIXME offer to change the value of the command's gconf key
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (command && strcmp(command, "")!=0)
|
|
||||||
{
|
|
||||||
char *text = g_strdup_printf (
|
|
||||||
/* Displayed when a keybinding which is
|
|
||||||
* supposed to launch a program fails.
|
|
||||||
*/
|
|
||||||
_("There was an error running "
|
|
||||||
"<tt>%s</tt>:\n\n%s"),
|
|
||||||
command,
|
|
||||||
message);
|
|
||||||
|
|
||||||
meta_show_dialog ("--error",
|
|
||||||
text,
|
|
||||||
NULL,
|
|
||||||
screen->screen_name,
|
|
||||||
NULL, NULL, 0,
|
|
||||||
NULL, NULL);
|
|
||||||
|
|
||||||
g_free (text);
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
meta_show_dialog ("--error",
|
|
||||||
message,
|
|
||||||
NULL,
|
|
||||||
screen->screen_name,
|
|
||||||
NULL, NULL, 0,
|
|
||||||
NULL, NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
set_display_setup_func (void *data)
|
|
||||||
{
|
|
||||||
const char *screen_name = data;
|
|
||||||
char *full;
|
|
||||||
|
|
||||||
full = g_strdup_printf ("DISPLAY=%s", screen_name);
|
|
||||||
|
|
||||||
putenv (full);
|
|
||||||
|
|
||||||
/* do not free full, because putenv is lame */
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
|
||||||
meta_spawn_command_line_async_on_screen (const gchar *command_line,
|
|
||||||
MetaScreen *screen,
|
|
||||||
GError **error)
|
|
||||||
{
|
|
||||||
gboolean retval;
|
|
||||||
gchar **argv = NULL;
|
|
||||||
|
|
||||||
g_return_val_if_fail (command_line != NULL, FALSE);
|
|
||||||
|
|
||||||
if (!g_shell_parse_argv (command_line,
|
|
||||||
NULL, &argv,
|
|
||||||
error))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
retval = g_spawn_async (NULL,
|
|
||||||
argv,
|
|
||||||
NULL,
|
|
||||||
G_SPAWN_SEARCH_PATH,
|
|
||||||
set_display_setup_func,
|
|
||||||
screen->screen_name,
|
|
||||||
NULL,
|
|
||||||
error);
|
|
||||||
g_strfreev (argv);
|
|
||||||
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
handle_run_command (MetaDisplay *display,
|
|
||||||
MetaScreen *screen,
|
|
||||||
MetaWindow *window,
|
|
||||||
XEvent *event,
|
|
||||||
MetaKeyBinding *binding,
|
|
||||||
gpointer dummy)
|
|
||||||
{
|
|
||||||
gint which = binding->handler->data;
|
|
||||||
const char *command;
|
|
||||||
GError *err;
|
|
||||||
|
|
||||||
command = meta_prefs_get_command (which);
|
|
||||||
|
|
||||||
if (command == NULL)
|
|
||||||
{
|
|
||||||
char *s;
|
|
||||||
|
|
||||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
|
||||||
"No command %d to run in response to keybinding press\n",
|
|
||||||
which);
|
|
||||||
|
|
||||||
s = g_strdup_printf (_("No command %d has been defined.\n"),
|
|
||||||
which + 1);
|
|
||||||
error_on_command (which, NULL, s, screen, event->xkey.time);
|
|
||||||
g_free (s);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
err = NULL;
|
|
||||||
if (!meta_spawn_command_line_async_on_screen (command, screen, &err))
|
|
||||||
{
|
|
||||||
error_on_command (which, command, err->message, screen, event->xkey.time);
|
|
||||||
|
|
||||||
g_error_free (err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
handle_maximize_vertically (MetaDisplay *display,
|
handle_maximize_vertically (MetaDisplay *display,
|
||||||
@ -3602,44 +3470,6 @@ meta_set_keybindings_disabled (gboolean setting)
|
|||||||
"Keybindings %s\n", all_bindings_disabled ? "disabled" : "enabled");
|
"Keybindings %s\n", all_bindings_disabled ? "disabled" : "enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
handle_run_terminal (MetaDisplay *display,
|
|
||||||
MetaScreen *screen,
|
|
||||||
MetaWindow *window,
|
|
||||||
XEvent *event,
|
|
||||||
MetaKeyBinding *binding,
|
|
||||||
gpointer dummy)
|
|
||||||
{
|
|
||||||
const char *command;
|
|
||||||
GError *err;
|
|
||||||
|
|
||||||
command = meta_prefs_get_terminal_command ();
|
|
||||||
|
|
||||||
if (command == NULL)
|
|
||||||
{
|
|
||||||
char *s;
|
|
||||||
|
|
||||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
|
||||||
"No terminal command to run in response to "
|
|
||||||
"keybinding press\n");
|
|
||||||
|
|
||||||
s = g_strdup_printf (_("No terminal command has been defined.\n"));
|
|
||||||
error_on_command (-1, NULL, s, screen, event->xkey.time);
|
|
||||||
g_free (s);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
err = NULL;
|
|
||||||
if (!meta_spawn_command_line_async_on_screen (command, screen, &err))
|
|
||||||
{
|
|
||||||
error_on_command (-1, command, err->message, screen,
|
|
||||||
event->xkey.time);
|
|
||||||
|
|
||||||
g_error_free (err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
meta_keybindings_set_custom_handler (const gchar *name,
|
meta_keybindings_set_custom_handler (const gchar *name,
|
||||||
MetaKeyHandlerFunc handler,
|
MetaKeyHandlerFunc handler,
|
||||||
|
2284
src/core/prefs.c
2284
src/core/prefs.c
File diff suppressed because it is too large
Load Diff
@ -1186,7 +1186,7 @@ prefs_changed_callback (MetaPreference pref,
|
|||||||
|
|
||||||
if (pref == META_PREF_NUM_WORKSPACES)
|
if (pref == META_PREF_NUM_WORKSPACES)
|
||||||
{
|
{
|
||||||
/* GConf doesn't provide timestamps, but luckily update_num_workspaces
|
/* GSettings doesn't provide timestamps, but luckily update_num_workspaces
|
||||||
* often doesn't need it...
|
* often doesn't need it...
|
||||||
*/
|
*/
|
||||||
guint32 timestamp =
|
guint32 timestamp =
|
||||||
|
@ -2277,7 +2277,7 @@ idle_calc_showing (gpointer data)
|
|||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meta_prefs_get_focus_mode () != META_FOCUS_MODE_CLICK)
|
if (meta_prefs_get_focus_mode () != G_DESKTOP_FOCUS_MODE_CLICK)
|
||||||
{
|
{
|
||||||
/* When display->mouse_mode is false, we want to ignore
|
/* When display->mouse_mode is false, we want to ignore
|
||||||
* EnterNotify events unless they come from mouse motion. To do
|
* EnterNotify events unless they come from mouse motion. To do
|
||||||
@ -2617,7 +2617,7 @@ window_state_on_map (MetaWindow *window,
|
|||||||
* approximation to enforce so we do that.
|
* approximation to enforce so we do that.
|
||||||
*/
|
*/
|
||||||
if (*takes_focus &&
|
if (*takes_focus &&
|
||||||
meta_prefs_get_focus_new_windows () == META_FOCUS_NEW_WINDOWS_STRICT &&
|
meta_prefs_get_focus_new_windows () == G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT &&
|
||||||
!window->display->allow_terminal_deactivation &&
|
!window->display->allow_terminal_deactivation &&
|
||||||
__window_is_terminal (window->display->focus_window) &&
|
__window_is_terminal (window->display->focus_window) &&
|
||||||
!meta_window_is_ancestor_of_transient (window->display->focus_window,
|
!meta_window_is_ancestor_of_transient (window->display->focus_window,
|
||||||
@ -2952,7 +2952,7 @@ meta_window_show (MetaWindow *window)
|
|||||||
* that new window below a lot of other windows.
|
* that new window below a lot of other windows.
|
||||||
*/
|
*/
|
||||||
if (overlap ||
|
if (overlap ||
|
||||||
(meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK &&
|
(meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK &&
|
||||||
meta_prefs_get_raise_on_click ()))
|
meta_prefs_get_raise_on_click ()))
|
||||||
meta_window_stack_just_below (window, focus_window);
|
meta_window_stack_just_below (window, focus_window);
|
||||||
|
|
||||||
@ -6836,7 +6836,7 @@ meta_window_notify_focus (MetaWindow *window,
|
|||||||
*
|
*
|
||||||
* There is dicussion in bugs 102209, 115072, and 461577
|
* There is dicussion in bugs 102209, 115072, and 461577
|
||||||
*/
|
*/
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK ||
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK ||
|
||||||
!meta_prefs_get_raise_on_click())
|
!meta_prefs_get_raise_on_click())
|
||||||
meta_display_ungrab_focus_window_button (window->display, window);
|
meta_display_ungrab_focus_window_button (window->display, window);
|
||||||
|
|
||||||
@ -6889,7 +6889,7 @@ meta_window_notify_focus (MetaWindow *window,
|
|||||||
meta_window_update_layer (window);
|
meta_window_update_layer (window);
|
||||||
|
|
||||||
/* Re-grab for click to focus and raise-on-click, if necessary */
|
/* Re-grab for click to focus and raise-on-click, if necessary */
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK ||
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK ||
|
||||||
!meta_prefs_get_raise_on_click ())
|
!meta_prefs_get_raise_on_click ())
|
||||||
meta_display_grab_focus_window_button (window->display, window);
|
meta_display_grab_focus_window_button (window->display, window);
|
||||||
}
|
}
|
||||||
@ -9867,7 +9867,7 @@ meta_window_set_user_time (MetaWindow *window,
|
|||||||
* doesn't want to have focus transferred for now due to new windows.
|
* doesn't want to have focus transferred for now due to new windows.
|
||||||
*/
|
*/
|
||||||
if (meta_prefs_get_focus_new_windows () ==
|
if (meta_prefs_get_focus_new_windows () ==
|
||||||
META_FOCUS_NEW_WINDOWS_STRICT &&
|
G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT &&
|
||||||
__window_is_terminal (window))
|
__window_is_terminal (window))
|
||||||
window->display->allow_terminal_deactivation = FALSE;
|
window->display->allow_terminal_deactivation = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -1201,7 +1201,7 @@ meta_workspace_focus_default_window (MetaWorkspace *workspace,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK ||
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK ||
|
||||||
!workspace->screen->display->mouse_mode)
|
!workspace->screen->display->mouse_mode)
|
||||||
focus_ancestor_or_mru_window (workspace, not_this_one, timestamp);
|
focus_ancestor_or_mru_window (workspace, not_this_one, timestamp);
|
||||||
else
|
else
|
||||||
@ -1239,9 +1239,9 @@ meta_workspace_focus_default_window (MetaWorkspace *workspace,
|
|||||||
window);
|
window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_SLOPPY)
|
else if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_SLOPPY)
|
||||||
focus_ancestor_or_mru_window (workspace, not_this_one, timestamp);
|
focus_ancestor_or_mru_window (workspace, not_this_one, timestamp);
|
||||||
else if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_MOUSE)
|
else if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_MOUSE)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_FOCUS,
|
meta_topic (META_DEBUG_FOCUS,
|
||||||
"Setting focus to no_focus_window, since no valid "
|
"Setting focus to no_focus_window, since no valid "
|
||||||
@ -1300,7 +1300,7 @@ focus_ancestor_or_mru_window (MetaWorkspace *workspace,
|
|||||||
meta_window_focus (ancestor, timestamp);
|
meta_window_focus (ancestor, timestamp);
|
||||||
|
|
||||||
/* Also raise the window if in click-to-focus */
|
/* Also raise the window if in click-to-focus */
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK)
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK)
|
||||||
meta_window_raise (ancestor);
|
meta_window_raise (ancestor);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -1346,7 +1346,7 @@ focus_ancestor_or_mru_window (MetaWorkspace *workspace,
|
|||||||
meta_window_focus (window, timestamp);
|
meta_window_focus (window, timestamp);
|
||||||
|
|
||||||
/* Also raise the window if in click-to-focus */
|
/* Also raise the window if in click-to-focus */
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK)
|
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK)
|
||||||
meta_window_raise (window);
|
meta_window_raise (window);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -12,7 +12,7 @@ mutter_plugin_api_version=@MUTTER_PLUGIN_API_VERSION@
|
|||||||
|
|
||||||
Name: libmutter
|
Name: libmutter
|
||||||
Description: Mutter window manager library
|
Description: Mutter window manager library
|
||||||
Requires: gtk+-3.0 @CLUTTER_PACKAGE@ x11
|
Requires: gsettings-desktop-schemas gtk+-3.0 @CLUTTER_PACKAGE@ x11
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Libs: -L${libdir} -lmutter
|
Libs: -L${libdir} -lmutter
|
||||||
Cflags: -I${includedir}/mutter -DMUTTER_MAJOR_VERSION=${mutter_major_version} -DMUTTER_MINOR_VERSION=${mutter_minor_version} -DMUTTER_MICRO_VERSION=${mutter_micro_version} -DMUTTER_PLUGIN_API_VERSION=${mutter_plugin_api_version}
|
Cflags: -I${includedir}/mutter -DMUTTER_MAJOR_VERSION=${mutter_major_version} -DMUTTER_MINOR_VERSION=${mutter_minor_version} -DMUTTER_MICRO_VERSION=${mutter_micro_version} -DMUTTER_PLUGIN_API_VERSION=${mutter_plugin_api_version}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
||||||
|
|
||||||
/* Mutter common types shared by core.h and ui.h */
|
/* Mutter common types shared by core.h and ui.h
|
||||||
|
*
|
||||||
|
* PLEASE KEEP IN SYNC WITH GSETTINGS SCHEMAS!
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2001 Havoc Pennington
|
* Copyright (C) 2001 Havoc Pennington
|
||||||
@ -164,32 +167,6 @@ typedef enum
|
|||||||
|
|
||||||
} MetaCursor;
|
} MetaCursor;
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
META_FOCUS_MODE_CLICK,
|
|
||||||
META_FOCUS_MODE_SLOPPY,
|
|
||||||
META_FOCUS_MODE_MOUSE
|
|
||||||
} MetaFocusMode;
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
META_FOCUS_NEW_WINDOWS_SMART,
|
|
||||||
META_FOCUS_NEW_WINDOWS_STRICT
|
|
||||||
} MetaFocusNewWindows;
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
META_ACTION_TITLEBAR_TOGGLE_SHADE,
|
|
||||||
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE,
|
|
||||||
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_HORIZONTALLY,
|
|
||||||
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_VERTICALLY,
|
|
||||||
META_ACTION_TITLEBAR_MINIMIZE,
|
|
||||||
META_ACTION_TITLEBAR_NONE,
|
|
||||||
META_ACTION_TITLEBAR_LOWER,
|
|
||||||
META_ACTION_TITLEBAR_MENU,
|
|
||||||
META_ACTION_TITLEBAR_LAST
|
|
||||||
} MetaActionTitlebar;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
META_FRAME_TYPE_NORMAL,
|
META_FRAME_TYPE_NORMAL,
|
||||||
@ -374,10 +351,8 @@ void meta_frame_borders_clear (MetaFrameBorders *self);
|
|||||||
|
|
||||||
/* G_PRIORITY_DEFAULT_IDLE:
|
/* G_PRIORITY_DEFAULT_IDLE:
|
||||||
* Mutter plugin unloading
|
* Mutter plugin unloading
|
||||||
* GConf notify idle
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Chosen to be below the GConf notify idle */
|
|
||||||
#define META_PRIORITY_PREFS_NOTIFY (G_PRIORITY_DEFAULT_IDLE + 10)
|
#define META_PRIORITY_PREFS_NOTIFY (G_PRIORITY_DEFAULT_IDLE + 10)
|
||||||
|
|
||||||
/************************************************************/
|
/************************************************************/
|
||||||
|
@ -28,7 +28,9 @@
|
|||||||
/* This header is a "common" one between the UI and core side */
|
/* This header is a "common" one between the UI and core side */
|
||||||
#include <meta/common.h>
|
#include <meta/common.h>
|
||||||
#include <pango/pango-font.h>
|
#include <pango/pango-font.h>
|
||||||
|
#include <gdesktop-enums.h>
|
||||||
|
|
||||||
|
/* Keep in sync with GSettings schemas! */
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
META_PREF_MOUSE_BUTTON_MODS,
|
META_PREF_MOUSE_BUTTON_MODS,
|
||||||
@ -47,8 +49,6 @@ typedef enum
|
|||||||
META_PREF_APPLICATION_BASED,
|
META_PREF_APPLICATION_BASED,
|
||||||
META_PREF_KEYBINDINGS,
|
META_PREF_KEYBINDINGS,
|
||||||
META_PREF_DISABLE_WORKAROUNDS,
|
META_PREF_DISABLE_WORKAROUNDS,
|
||||||
META_PREF_COMMANDS,
|
|
||||||
META_PREF_TERMINAL_COMMAND,
|
|
||||||
META_PREF_BUTTON_LAYOUT,
|
META_PREF_BUTTON_LAYOUT,
|
||||||
META_PREF_WORKSPACE_NAMES,
|
META_PREF_WORKSPACE_NAMES,
|
||||||
META_PREF_VISUAL_BELL,
|
META_PREF_VISUAL_BELL,
|
||||||
@ -77,16 +77,16 @@ void meta_prefs_remove_listener (MetaPrefsChangedFunc func,
|
|||||||
|
|
||||||
void meta_prefs_init (void);
|
void meta_prefs_init (void);
|
||||||
|
|
||||||
void meta_prefs_override_preference_location (const char *original_key,
|
void meta_prefs_override_preference_schema (const char *key,
|
||||||
const char *new_key);
|
const char *schema);
|
||||||
|
|
||||||
const char* meta_preference_to_string (MetaPreference pref);
|
const char* meta_preference_to_string (MetaPreference pref);
|
||||||
|
|
||||||
MetaVirtualModifier meta_prefs_get_mouse_button_mods (void);
|
MetaVirtualModifier meta_prefs_get_mouse_button_mods (void);
|
||||||
guint meta_prefs_get_mouse_button_resize (void);
|
guint meta_prefs_get_mouse_button_resize (void);
|
||||||
guint meta_prefs_get_mouse_button_menu (void);
|
guint meta_prefs_get_mouse_button_menu (void);
|
||||||
MetaFocusMode meta_prefs_get_focus_mode (void);
|
GDesktopFocusMode meta_prefs_get_focus_mode (void);
|
||||||
MetaFocusNewWindows meta_prefs_get_focus_new_windows (void);
|
GDesktopFocusNewWindows meta_prefs_get_focus_new_windows (void);
|
||||||
gboolean meta_prefs_get_attach_modal_dialogs (void);
|
gboolean meta_prefs_get_attach_modal_dialogs (void);
|
||||||
gboolean meta_prefs_get_raise_on_click (void);
|
gboolean meta_prefs_get_raise_on_click (void);
|
||||||
const char* meta_prefs_get_theme (void);
|
const char* meta_prefs_get_theme (void);
|
||||||
@ -101,19 +101,18 @@ gboolean meta_prefs_get_gnome_accessibility (void);
|
|||||||
gboolean meta_prefs_get_gnome_animations (void);
|
gboolean meta_prefs_get_gnome_animations (void);
|
||||||
gboolean meta_prefs_get_edge_tiling (void);
|
gboolean meta_prefs_get_edge_tiling (void);
|
||||||
|
|
||||||
const char* meta_prefs_get_command (int i);
|
const char* meta_prefs_get_screenshot_command (void);
|
||||||
|
|
||||||
char* meta_prefs_get_gconf_key_for_command (int i);
|
const char* meta_prefs_get_window_screenshot_command (void);
|
||||||
|
|
||||||
const char* meta_prefs_get_terminal_command (void);
|
const char* meta_prefs_get_terminal_command (void);
|
||||||
const char* meta_prefs_get_gconf_key_for_terminal_command (void);
|
|
||||||
|
|
||||||
void meta_prefs_get_button_layout (MetaButtonLayout *button_layout);
|
void meta_prefs_get_button_layout (MetaButtonLayout *button_layout);
|
||||||
|
|
||||||
/* Double, right, middle click can be configured to any titlebar meta-action */
|
/* Double, right, middle click can be configured to any titlebar meta-action */
|
||||||
MetaActionTitlebar meta_prefs_get_action_double_click_titlebar (void);
|
GDesktopTitlebarAction meta_prefs_get_action_double_click_titlebar (void);
|
||||||
MetaActionTitlebar meta_prefs_get_action_middle_click_titlebar (void);
|
GDesktopTitlebarAction meta_prefs_get_action_middle_click_titlebar (void);
|
||||||
MetaActionTitlebar meta_prefs_get_action_right_click_titlebar (void);
|
GDesktopTitlebarAction meta_prefs_get_action_right_click_titlebar (void);
|
||||||
|
|
||||||
void meta_prefs_set_num_workspaces (int n_workspaces);
|
void meta_prefs_set_num_workspaces (int n_workspaces);
|
||||||
|
|
||||||
@ -187,41 +186,6 @@ typedef enum _MetaKeyBindingAction
|
|||||||
META_KEYBINDING_ACTION_PANEL_MAIN_MENU,
|
META_KEYBINDING_ACTION_PANEL_MAIN_MENU,
|
||||||
META_KEYBINDING_ACTION_PANEL_RUN_DIALOG,
|
META_KEYBINDING_ACTION_PANEL_RUN_DIALOG,
|
||||||
META_KEYBINDING_ACTION_TOGGLE_RECORDING,
|
META_KEYBINDING_ACTION_TOGGLE_RECORDING,
|
||||||
META_KEYBINDING_ACTION_COMMAND_1,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_2,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_3,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_4,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_5,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_6,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_7,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_8,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_9,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_10,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_11,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_12,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_13,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_14,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_15,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_16,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_17,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_18,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_19,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_20,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_21,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_22,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_23,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_24,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_25,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_26,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_27,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_28,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_29,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_30,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_31,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_32,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_SCREENSHOT,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_WINDOW_SCREENSHOT,
|
|
||||||
META_KEYBINDING_ACTION_COMMAND_TERMINAL,
|
|
||||||
META_KEYBINDING_ACTION_SET_SPEW_MARK,
|
META_KEYBINDING_ACTION_SET_SPEW_MARK,
|
||||||
META_KEYBINDING_ACTION_ACTIVATE_WINDOW_MENU,
|
META_KEYBINDING_ACTION_ACTIVATE_WINDOW_MENU,
|
||||||
META_KEYBINDING_ACTION_TOGGLE_FULLSCREEN,
|
META_KEYBINDING_ACTION_TOGGLE_FULLSCREEN,
|
||||||
@ -279,13 +243,10 @@ typedef struct
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *default_keybinding;
|
|
||||||
/**
|
/**
|
||||||
* A list of MetaKeyCombos. Each of them is bound to
|
* A list of MetaKeyCombos. Each of them is bound to
|
||||||
* this keypref. If one has keysym==modifiers==0, it is
|
* this keypref. If one has keysym==modifiers==0, it is
|
||||||
* ignored. For historical reasons, the first entry is
|
* ignored.
|
||||||
* governed by the pref FOO and the remainder are
|
|
||||||
* governed by the pref FOO_list.
|
|
||||||
*/
|
*/
|
||||||
GSList *bindings;
|
GSList *bindings;
|
||||||
|
|
||||||
@ -307,17 +268,8 @@ void meta_prefs_get_window_binding (const char *name,
|
|||||||
|
|
||||||
void meta_prefs_get_overlay_binding (MetaKeyCombo *combo);
|
void meta_prefs_get_overlay_binding (MetaKeyCombo *combo);
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
META_VISUAL_BELL_INVALID = 0,
|
|
||||||
META_VISUAL_BELL_FULLSCREEN_FLASH,
|
|
||||||
META_VISUAL_BELL_FRAME_FLASH
|
|
||||||
|
|
||||||
} MetaVisualBellType;
|
|
||||||
|
|
||||||
gboolean meta_prefs_get_visual_bell (void);
|
|
||||||
gboolean meta_prefs_bell_is_audible (void);
|
gboolean meta_prefs_bell_is_audible (void);
|
||||||
MetaVisualBellType meta_prefs_get_visual_bell_type (void);
|
GDesktopVisualBellType meta_prefs_get_visual_bell_type (void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
6
src/mutter-schemas.convert
Normal file
6
src/mutter-schemas.convert
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[org.gnome.mutter]
|
||||||
|
overlay-key = /apps/mutter/general/overlay_key
|
||||||
|
attach-modal-dialogs = /apps/mutter/general/attach_modal_dialogs
|
||||||
|
live-hidden-windows = /apps/mutter/general/live_hidden_windows
|
||||||
|
workspaces-only-on-primary = /apps/mutter/general/workspaces_only_on_primary
|
||||||
|
draggable-border-width = /apps/mutter/general/draggable_border_width
|
@ -1,89 +0,0 @@
|
|||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<!-- General preferences -->
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/mutter/general/overlay_key</key>
|
|
||||||
<applyto>/apps/mutter/general/overlay_key</applyto>
|
|
||||||
<owner>mutter</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>Super_L</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Modifier to use for extended window management operations</short>
|
|
||||||
<long>
|
|
||||||
This key will initiate the "overlay", which is a combination window
|
|
||||||
overview and application launching system. The default is intended
|
|
||||||
to be the "Windows key" on PC hardware.
|
|
||||||
|
|
||||||
It's expected that this binding either the default or set to
|
|
||||||
the empty string.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/mutter/general/attach_modal_dialogs</key>
|
|
||||||
<applyto>/apps/mutter/general/attach_modal_dialogs</applyto>
|
|
||||||
<owner>mutter</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>false</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Attach modal dialogs</short>
|
|
||||||
<long>
|
|
||||||
When true, instead
|
|
||||||
of having independent titlebars, modal dialogs appear attached to the titlebar
|
|
||||||
of the parent window and are moved together with the parent window.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/mutter/general/live_hidden_windows</key>
|
|
||||||
<applyto>/apps/mutter/general/live_hidden_windows</applyto>
|
|
||||||
<owner>mutter</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>false</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Live Hidden Windows</short>
|
|
||||||
<long>
|
|
||||||
Determines whether hidden windows (i.e., minimized windows and
|
|
||||||
windows on other workspaces than the current one) should be kept
|
|
||||||
alive.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/mutter/general/workspaces_only_on_primary</key>
|
|
||||||
<applyto>/apps/mutter/general/workspaces_only_on_primary</applyto>
|
|
||||||
<owner>mutter</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>false</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Workspaces only on primary</short>
|
|
||||||
<long>
|
|
||||||
Determines whether workspace switching should happen for windows
|
|
||||||
on all monitors or only for windows on the primary monitor.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/mutter/general/draggable_border_width</key>
|
|
||||||
<applyto>/apps/mutter/general/draggable_border_width</applyto>
|
|
||||||
<owner>mutter</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>10</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Draggable border width</short>
|
|
||||||
<long>
|
|
||||||
The amount of total draggable borders. If the theme's visible
|
|
||||||
borders are not enough, invisible borders will be added to meet
|
|
||||||
this value.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
97
src/org.gnome.mutter.gschema.xml.in
Normal file
97
src/org.gnome.mutter.gschema.xml.in
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
<schemalist>
|
||||||
|
<schema id="org.gnome.mutter" path="/org/gnome/mutter/"
|
||||||
|
gettext-domain="@GETTEXT_DOMAIN">
|
||||||
|
|
||||||
|
<key name="overlay-key" type="s">
|
||||||
|
<default>'Super_L'</default>
|
||||||
|
<_summary>Modifier to use for extended window management operations</_summary>
|
||||||
|
<_description>
|
||||||
|
This key will initiate the "overlay", which is a combination window
|
||||||
|
overview and application launching system. The default is intended
|
||||||
|
to be the "Windows key" on PC hardware.
|
||||||
|
|
||||||
|
It's expected that this binding either the default or set to
|
||||||
|
the empty string.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="attach-modal-dialogs" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<_summary>Attach modal dialogs</_summary>
|
||||||
|
<_description>
|
||||||
|
When true, instead of having independent titlebars, modal dialogs
|
||||||
|
appear attached to the titlebar of the parent window and are moved
|
||||||
|
together with the parent window.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="live-hidden-windows" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<_summary>Live Hidden Windows</_summary>
|
||||||
|
<_description>
|
||||||
|
Determines whether hidden windows (i.e., minimized windows and
|
||||||
|
windows on other workspaces than the current one) should be kept
|
||||||
|
alive.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="edge-tiling" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<_summary>Enable edge tiling when dropping windows on screen edges</_summary>
|
||||||
|
<_description>
|
||||||
|
If enabled, dropping windows on vertical screen edges maximizes them
|
||||||
|
vertically and resizes them horizontally to cover half of the available
|
||||||
|
area. Dropping windows on the top screen edge maximizes them completely.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="workspaces-only-on-primary" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<_summary>Workspaces only on primary</_summary>
|
||||||
|
<_description>
|
||||||
|
Determines whether workspace switching should happen for windows
|
||||||
|
on all monitors or only for windows on the primary monitor.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="no-tab-popup" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<_summary>No tab popup</_summary>
|
||||||
|
<_description>
|
||||||
|
Determines whether the use of popup and highlight frame should
|
||||||
|
be disabled for window cycling.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="draggable-border-width" type="i">
|
||||||
|
<default>10</default>
|
||||||
|
<range min="0" max="64"/>
|
||||||
|
<_summary>Draggable border width</_summary>
|
||||||
|
<_description>
|
||||||
|
The amount of total draggable borders. If the theme's visible
|
||||||
|
borders are not enough, invisible borders will be added to meet
|
||||||
|
this value.
|
||||||
|
</_description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<child name="keybindings" schema="org.gnome.mutter.keybindings"/>
|
||||||
|
|
||||||
|
</schema>
|
||||||
|
<schema id="org.gnome.mutter.keybindings" path="/org/gnome/mutter/keybindings/">
|
||||||
|
|
||||||
|
<key name="toggle-recording" type="as">
|
||||||
|
<default><![CDATA[['<Control><Shift><Alt>r']]]></default>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="tab-popup-select" type="as">
|
||||||
|
<default>[]</default>
|
||||||
|
<_summary>Select window from tab popup</_summary>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="tab-popup-cancel" type="as">
|
||||||
|
<default>[]</default>
|
||||||
|
<_summary>Cancel tab popup</_summary>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
</schema>
|
||||||
|
</schemalist>
|
@ -1299,7 +1299,7 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
|
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case META_ACTION_TITLEBAR_TOGGLE_SHADE:
|
case G_DESKTOP_TITLEBAR_ACTION_TOGGLE_SHADE:
|
||||||
{
|
{
|
||||||
meta_core_get (display, frame->xwindow,
|
meta_core_get (display, frame->xwindow,
|
||||||
META_CORE_GET_FRAME_FLAGS, &flags,
|
META_CORE_GET_FRAME_FLAGS, &flags,
|
||||||
@ -1319,7 +1319,7 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE:
|
case G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE:
|
||||||
{
|
{
|
||||||
meta_core_get (display, frame->xwindow,
|
meta_core_get (display, frame->xwindow,
|
||||||
META_CORE_GET_FRAME_FLAGS, &flags,
|
META_CORE_GET_FRAME_FLAGS, &flags,
|
||||||
@ -1332,7 +1332,7 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_HORIZONTALLY:
|
case G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE_HORIZONTALLY:
|
||||||
{
|
{
|
||||||
meta_core_get (display, frame->xwindow,
|
meta_core_get (display, frame->xwindow,
|
||||||
META_CORE_GET_FRAME_FLAGS, &flags,
|
META_CORE_GET_FRAME_FLAGS, &flags,
|
||||||
@ -1345,7 +1345,7 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_VERTICALLY:
|
case G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE_VERTICALLY:
|
||||||
{
|
{
|
||||||
meta_core_get (display, frame->xwindow,
|
meta_core_get (display, frame->xwindow,
|
||||||
META_CORE_GET_FRAME_FLAGS, &flags,
|
META_CORE_GET_FRAME_FLAGS, &flags,
|
||||||
@ -1358,7 +1358,7 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_MINIMIZE:
|
case G_DESKTOP_TITLEBAR_ACTION_MINIMIZE:
|
||||||
{
|
{
|
||||||
meta_core_get (display, frame->xwindow,
|
meta_core_get (display, frame->xwindow,
|
||||||
META_CORE_GET_FRAME_FLAGS, &flags,
|
META_CORE_GET_FRAME_FLAGS, &flags,
|
||||||
@ -1371,17 +1371,17 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_NONE:
|
case G_DESKTOP_TITLEBAR_ACTION_NONE:
|
||||||
/* Yaay, a sane user that doesn't use that other weird crap! */
|
/* Yaay, a sane user that doesn't use that other weird crap! */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_LOWER:
|
case G_DESKTOP_TITLEBAR_ACTION_LOWER:
|
||||||
meta_core_user_lower_and_unfocus (display,
|
meta_core_user_lower_and_unfocus (display,
|
||||||
frame->xwindow,
|
frame->xwindow,
|
||||||
event->time);
|
event->time);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_MENU:
|
case G_DESKTOP_TITLEBAR_ACTION_MENU:
|
||||||
meta_core_show_window_menu (display,
|
meta_core_show_window_menu (display,
|
||||||
frame->xwindow,
|
frame->xwindow,
|
||||||
event->x_root,
|
event->x_root,
|
||||||
@ -1389,9 +1389,6 @@ meta_frame_titlebar_event (MetaUIFrame *frame,
|
|||||||
event->button,
|
event->button,
|
||||||
event->time);
|
event->time);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ACTION_TITLEBAR_LAST:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -195,10 +195,6 @@ class test_ansi(BuildTest):
|
|||||||
def run(self):
|
def run(self):
|
||||||
return self.run_build(c='ansi')
|
return self.run_build(c='ansi')
|
||||||
|
|
||||||
class test_gconfoff(BuildTest):
|
|
||||||
def run(self):
|
|
||||||
return self.run_build(autogen='--disable-gconf')
|
|
||||||
|
|
||||||
class test_compositoroff(BuildTest):
|
class test_compositoroff(BuildTest):
|
||||||
def run(self):
|
def run(self):
|
||||||
return self.run_build(autogen='--disable-compositor')
|
return self.run_build(autogen='--disable-compositor')
|
||||||
|
Loading…
Reference in New Issue
Block a user