From aac918c1e18be572ff7d52fd278b4d4de226face Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Thu, 23 May 2013 09:45:22 -0700 Subject: [PATCH] Initial patch. Has worked on every version of Metacity since 2.1 --- README.md | 9 +++++++++ metacity_workspace.patch | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 README.md create mode 100755 metacity_workspace.patch diff --git a/README.md b/README.md new file mode 100644 index 0000000..e705b61 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +This is a small patch to Metacity, the window manager for the Gnome +2.0 desktop. This patch enables keyboard navigation of the +multi-desktop to "wrap around" from the last desktop to the first, or +vice versa. + +This feature is available on the Motif multi-desktop window manager, +so it's been around since 1997 or so. Why modern desktops don't +support this is beyond me, but as a developer with a fondness for +keyboard solutions, it's a must-have. diff --git a/metacity_workspace.patch b/metacity_workspace.patch new file mode 100755 index 0000000..629dd8a --- /dev/null +++ b/metacity_workspace.patch @@ -0,0 +1,20 @@ +--- workspace.c~ 2005-07-13 10:06:21.000000000 -0700 ++++ workspace.c 2006-01-06 21:11:36.000000000 -0800 +@@ -758,13 +758,13 @@ + } + + if (layout.current_col < 0) +- layout.current_col = 0; +- if (layout.current_col >= layout.cols) + layout.current_col = layout.cols - 1; ++ if (layout.current_col >= layout.cols) ++ layout.current_col = 0; + if (layout.current_row < 0) +- layout.current_row = 0; +- if (layout.current_row >= layout.rows) + layout.current_row = layout.rows - 1; ++ if (layout.current_row >= layout.rows) ++ layout.current_row = 0; + + i = layout.grid[layout.current_row * layout.cols + layout.current_col]; +