From 8cde052456f00df795f9ab18e006122c14b9778f Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Fri, 19 Jun 2009 21:56:36 +0200 Subject: [PATCH] Spawn: Applied KERNEL_ERROR's patch. --- src/init.c | 2 +- src/mouse.c | 1 - src/util.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/init.c b/src/init.c index c7f72cf..81451d0 100644 --- a/src/init.c +++ b/src/init.c @@ -141,7 +141,7 @@ init_root(void) XChangeWindowAttributes(dpy, ROOT, CWEventMask | CWCursor, &at); if(conf.root.background_command) - spawn(conf.root.background_command); + spawn("%s", conf.root.background_command); ewmh_init_hints(); ewmh_get_number_of_desktop(); diff --git a/src/mouse.c b/src/mouse.c index 9e692b1..0edd9bb 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -180,7 +180,6 @@ mouse_resize(Client *c) || c->state_fullscreen || c->state_dock) return; - XQueryPointer(dpy, ROOT, &w, &w, &omx, &omy, &d, &d, (uint *)&u); if((omx - c->geo.x) < (c->geo.width / 2)) diff --git a/src/util.c b/src/util.c index 2356fa2..3971b86 100644 --- a/src/util.c +++ b/src/util.c @@ -257,5 +257,5 @@ swap_ptr(void **x, void **y) void uicb_spawn(uicb_t cmd) { - spawn(cmd); + spawn("%s", cmd); }