compiz/compiz-0.9.2.1-keybindings.patch

60 lines
1.8 KiB
Diff

--- compiz-with-glib-mainloop/gtk/gnome/CMakeLists.txt 2011-01-15 13:20:16.375170002 +0000
+++ compiz-with-glib-mainloop/gtk/gnome/CMakeLists.txt.new 2011-01-16 00:57:18.129161249 +0000
@@ -1,3 +1,26 @@
+if (USE_GNOME_KEYBINDINGS)
+ compiz_translate_xml (
+ ${CMAKE_CURRENT_SOURCE_DIR}/50-compiz-desktop-key.xml.in
+ ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml
+ )
+ compiz_translate_xml (
+ ${CMAKE_CURRENT_SOURCE_DIR}/50-compiz-key.xml.in
+ ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml
+ )
+ set (key_xml
+ ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml
+ )
+ compiz_opt_install_file (
+ ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml
+ ${keybindingsdir}/50-compiz-desktop-key.xml
+ )
+ compiz_opt_install_file (
+ ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml
+ ${keybindingsdir}/50-compiz-key.xml
+ )
+endif (USE_GNOME_KEYBINDINGS)
+
if (USE_GNOME)
include_directories (
@@ -36,29 +59,6 @@
)
- if (USE_GNOME_KEYBINDINGS)
- compiz_translate_xml (
- ${CMAKE_CURRENT_SOURCE_DIR}/50-compiz-desktop-key.xml.in
- ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml
- )
- compiz_translate_xml (
- ${CMAKE_CURRENT_SOURCE_DIR}/50-compiz-key.xml.in
- ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml
- )
- set (key_xml
- ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml
- ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml
- )
- compiz_opt_install_file (
- ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml
- ${keybindingsdir}/50-compiz-desktop-key.xml
- )
- compiz_opt_install_file (
- ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml
- ${keybindingsdir}/50-compiz-key.xml
- )
- endif (USE_GNOME_KEYBINDINGS)
-
add_library (gnome-compiz MODULE
compiz-window-manager.c
compiz-window-manager.h