summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-09-25 00:27:09 +0000
committersabetts <sabetts>2003-09-25 00:27:09 +0000
commit48d7e5cfc0deb8016d86d123f483425672c2d653 (patch)
tree7af6d06e3c87ba13f683d89d593f6141d379a817 /contrib
parent2257017604c7a02e46e01c3e8d1dddb2a99e695e (diff)
downloadratpoison-48d7e5cfc0deb8016d86d123f483425672c2d653.zip
* contrib/clickframe.pl: put the patch at the end of the file and
make it runnable through patch.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/clickframe.pl81
1 files changed, 42 insertions, 39 deletions
diff --git a/contrib/clickframe.pl b/contrib/clickframe.pl
index b9270f5..71c6cb6 100644
--- a/contrib/clickframe.pl
+++ b/contrib/clickframe.pl
@@ -8,45 +8,8 @@
# "perl /home/sabetts/src/ratpoison/contrib/clickframe.pl &"
# control + b:1
#
-# REQUIRES xbindkeys-1.6.4 with the following patch applied:
-#
-# --- xbindkeys.c~ 2003-04-06 08:43:27.000000000 -0700
-# +++ xbindkeys.c 2003-09-24 11:46:20.000000000 -0700
-# @@ -143,7 +143,15 @@
-#
-#
-#
-# +void
-# +add_button_env (int x, int y)
-# +{
-# + char *env;
-#
-# + env = malloc (256 * sizeof (char));
-# + snprintf (env, 255, "XBINDKEYS_BUTTONLOC=%d,%d", x, y);
-# + putenv (env);
-# +}
-#
-#
-# static void
-# @@ -240,6 +248,8 @@
-# | Button1Mask | Button2Mask | Button3Mask
-# | Button4Mask | Button5Mask);
-#
-# + add_button_env (e.xbutton.x, e.xbutton.y);
-# +
-# for (i = 0; i < nb_keys; i++)
-# {
-# if (keys[i].type == BUTTON && keys[i].event_type == PRESS)
-# @@ -266,6 +276,8 @@
-# | Button1Mask | Button2Mask | Button3Mask
-# | Button4Mask | Button5Mask);
-
-# + add_button_env (e.xbutton.x, e.xbutton.y);
-# +
-# for (i = 0; i < nb_keys; i++)
-# {
-# if (keys[i].type == BUTTON && keys[i].event_type == RELEASE)
-#
+# Requires xbindkeys-1.6.4 with the patch at the end of this file
+# applied. This file can be fed directly to patch.
# Make sure the env vars are there
$ENV{XBINDKEYS_BUTTONLOC} || die '$XBINDKEYS_BUTTONLOC not bound';
@@ -70,3 +33,43 @@ foreach $frame (@framelist) {
system ("$ratpoison_bin -c \"fselect $num\"");
}
}
+
+__END__
+
+--- xbindkeys.c~ 2003-04-06 08:43:27.000000000 -0700
++++ xbindkeys.c 2003-09-24 11:46:20.000000000 -0700
+@@ -143,7 +143,15 @@
+
+
+
++void
++add_button_env (int x, int y)
++{
++ char *env;
+
++ env = malloc (256 * sizeof (char));
++ snprintf (env, 255, "XBINDKEYS_BUTTONLOC=%d,%d", x, y);
++ putenv (env);
++}
+
+
+ static void
+@@ -240,6 +248,8 @@
+ | Button1Mask | Button2Mask | Button3Mask
+ | Button4Mask | Button5Mask);
+
++ add_button_env (e.xbutton.x, e.xbutton.y);
++
+ for (i = 0; i < nb_keys; i++)
+ {
+ if (keys[i].type == BUTTON && keys[i].event_type == PRESS)
+@@ -266,6 +276,8 @@
+ | Button1Mask | Button2Mask | Button3Mask
+ | Button4Mask | Button5Mask);
+
++ add_button_env (e.xbutton.x, e.xbutton.y);
++
+ for (i = 0; i < nb_keys; i++)
+ {
+ if (keys[i].type == BUTTON && keys[i].event_type == RELEASE)
+