commit 4ccec387297de707254cc6ea0dc5ca6268c8d040
parent 62b079cdd94c34cef1184f0a845e98d8359d5b15
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Sat, 16 Sep 2006 22:08:54 -0700
[project @ b821a5037bc49748c1f71a10e9e0f3f77b27b675]
[project @ 102]
fix toggling of maximization
Diffstat:
3 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/HISTORY b/HISTORY
@@ -1,5 +1,12 @@
This is a history of major changes to {my wmii configuration}[http://people.ucsc.edu/~skurapat/wmii.html].
+
+= 2006-09-16
+
+* Fixed toggling of maximization of currently focused client, via toggle_maximize in rc.rb.
+ * Thanks to Fredrik for reporting this bug.
+
+
= 2006-09-15
* Added Wmii.get_view and Wmii.get_client methods, to further minimize hard-coded IXP file system paths. This will make it easier to upgrade to wmii-4 later on.
diff --git a/rc.rb b/rc.rb
@@ -131,6 +131,19 @@ def cycle_view aTarget
Wmii.focus_view tags[newIndex]
end
+# Toggles maximization of the currently focused client.
+def toggle_maximize
+ src = Wmii.current_client
+ srcId = src.index
+
+ src.ctl = 'sendto toggle'
+ dst = Wmii.current_view[0].sel
+
+ if dst.index == srcId
+ dst.geom = '0 0 east south'
+ end
+end
+
## wmii-2 style client detaching
diff --git a/wmiirc-config.rb b/wmiirc-config.rb
@@ -314,8 +314,7 @@ SHORTCUTS = {
# toggle maximizing the currently focused client to full screen
"#{SEND_SEQ}m" => lambda do
- SHORTCUTS["#{SEND_SEQ}space"].call
- SHORTCUTS["#{LAYOUT_SEQ}z"].call
+ toggle_maximize
end,
# swap the currently focused client with the one to its left