Initial patch. Has worked on every version of Metacity since 2.1

This commit is contained in:
Elf M. Sternberg 2013-05-23 09:45:22 -07:00
commit aac918c1e1
2 changed files with 29 additions and 0 deletions

9
README.md Normal file
View File

@ -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.

20
metacity_workspace.patch Executable file
View File

@ -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];