aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2013-10-19 19:39:34 +0000
committerokan2013-10-19 19:39:34 +0000
commit69e13f1a98399a3c2d65af3b8e2283fe6cec512b (patch)
tree18ec0acf69c0365f7ecea572d319a0df07b76035 /client.c
parent48d530ee6fa7562b2c00f16e84e5b273b03f08ab (diff)
downloadcwm-69e13f1a98399a3c2d65af3b8e2283fe6cec512b.tar.gz
Using xu_btn_ungrab() buttons during client_leave doesn't work (error
BadValue) when the modifier is already AnyModifier . Instead alter xu_btn_ungrab() to ungrab AnyButton/AnyModifier and call it only when a client is coming into focus in client_setactive(), instead of iterating over ignore mods - matches how we handle key grabs.
Diffstat (limited to 'client.c')
-rw-r--r--client.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/client.c b/client.c
index 5b3eb5c..2cc7db0 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.139 2013/10/19 18:59:22 okan Exp $
+ * $OpenBSD: client.c,v 1.140 2013/10/19 19:39:34 okan Exp $
*/
#include <sys/param.h>
@@ -186,15 +186,10 @@ client_delete(struct client_ctx *cc)
void
client_leave(struct client_ctx *cc)
{
- struct screen_ctx *sc;
-
if (cc == NULL)
cc = client_current();
if (cc == NULL)
return;
-
- sc = cc->sc;
- xu_btn_ungrab(sc->rootwin, AnyModifier, Button1);
}
void