[wiki] [sites] wiki updated
changeset: 483:ac10e401fbab
tag: tip
user: Markus Pinkert <peters_mops_AT_arcor.de>
date: Sun Mar 21 00:50:18 2010 +0100
files: dwm.suckless.org/patches/dwm-r1508-focusonclick.diff dwm.suckless.org/patches/focusonclick.md
description:
added focusonclick patch
diff -r ca0a84840083 -r ac10e401fbab dwm.suckless.org/patches/dwm-r1508-focusonclick.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-r1508-focusonclick.diff Sun Mar 21 00:50:18 2010 +0100
_AT_@ -0,0 +1,38 @@
+diff -r 72e52c5333ef config.def.h
+--- a/config.def.h Wed Nov 25 13:56:17 2009 +0000
++++ b/config.def.h Sun Mar 21 00:38:45 2010 +0100
+_AT_@ -12,6 +12,7 @@
+ static const unsigned int snap = 32; /* snap pixel */
+ static const Bool showbar = True; /* False means no bar */
+ static const Bool topbar = True; /* False means bottom bar */
++static const Bool focusonclick = True; /* Change focus only on click */
+
+ /* tagging */
+ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+diff -r 72e52c5333ef dwm.c
+--- a/dwm.c Wed Nov 25 13:56:17 2009 +0000
++++ b/dwm.c Sun Mar 21 00:38:45 2010 +0100
+_AT_@ -791,14 +791,16 @@
+
+ if((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root)
+ return;
+- if((m = wintomon(ev->window)) && m != selmon) {
+- unfocus(selmon->sel);
+- selmon = m;
++ if (!focusonclick) {
++ if((m = wintomon(ev->window)) && m != selmon) {
++ unfocus(selmon->sel);
++ selmon = m;
++ }
++ if((c = wintoclient(ev->window)))
++ focus(c);
++ else
++ focus(NULL);
+ }
+- if((c = wintoclient(ev->window)))
+- focus(c);
+- else
+- focus(NULL);
+ }
+
+ void
diff -r ca0a84840083 -r ac10e401fbab dwm.suckless.org/patches/focusonclick.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/focusonclick.md Sun Mar 21 00:50:18 2010 +0100
_AT_@ -0,0 +1,14 @@
+# FOCUSONCLICK
+
+## Description
+
+ * Switch focus only by mouse click and not sloppy
+
+## Download
+
+ * [dwm-r1508-focusonclick.diff](dwm-r1508-focusonclick.diff) (dwm r1508) (20100321)
+
+## Author
+
+ * Markus P. - peters_mops at arcor . de
+
Received on Sun Mar 21 2010 - 00:47:52 CET
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:11 CEST