wmix: call XSetCommand()
.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
parent
4feb6bd3d1
commit
e330aaee46
|
@ -20,7 +20,8 @@
|
|||
|
||||
void dockapp_init (Display *x_display, Bool randr);
|
||||
|
||||
void new_window (char *name, int width, int height);
|
||||
void new_window (char *name, int width, int height,
|
||||
int argc, char **argv);
|
||||
|
||||
void new_osd (int height);
|
||||
void update_osd (float volume, bool up);
|
||||
|
|
|
@ -235,7 +235,7 @@ void scroll_text(int x, int y, int width, bool reset)
|
|||
return;
|
||||
}
|
||||
|
||||
void new_window(char *name, int width, int height)
|
||||
void new_window(char *name, int width, int height, int argc, char **argv)
|
||||
{
|
||||
XpmAttributes attr;
|
||||
Pixel fg, bg;
|
||||
|
@ -332,6 +332,8 @@ void new_window(char *name, int width, int height)
|
|||
bar_cursor = XCreateFontCursor(display, XC_sb_up_arrow);
|
||||
null_cursor = create_null_cursor(display);
|
||||
|
||||
XSetCommand(display, win, argv, argc);
|
||||
|
||||
XMapWindow(display, win);
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ int main(int argc, char **argv)
|
|||
display_height = (float)DisplayHeight(display, DefaultScreen(display)) / 2.0;
|
||||
|
||||
dockapp_init(display, have_randr);
|
||||
new_window("wmix", 64, 64);
|
||||
new_window("wmix", 64, 64, argc, argv);
|
||||
new_osd(60);
|
||||
|
||||
if (config.mmkeys)
|
||||
|
|
Loading…
Reference in a new issue