Spawn: Applied KERNEL_ERROR's patch.

This commit is contained in:
Martin Duquesnoy 2009-06-19 21:56:36 +02:00
parent cb1cfb5d8e
commit 8cde052456
3 changed files with 2 additions and 3 deletions

View File

@ -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();

View File

@ -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))

View File

@ -257,5 +257,5 @@ swap_ptr(void **x, void **y)
void
uicb_spawn(uicb_t cmd)
{
spawn(cmd);
spawn("%s", cmd);
}