static Boolean update_player_window(XtPointer data) {
MainWindow *win = data;
WindowUpdate(win);
+ return 0;
}
static void* start_player(void *data) {
static Boolean player_widget_set_size(XtPointer data) {
Player *player = data;
MainWindow *win = GetMainWindow();
+
+ if(!win->adjustWindowSize) {
+ return 0;
+ }
Dimension win_width, win_height;
XtVaGetValues(win->window, XmNwidth, &win_width, XmNheight, &win_height, NULL);
if(win->playlist.repeatTrack) {
char *cmd = "{ \"command\": [\"set_property\", \"playback-time\", 0] }\n";
write(p->ipc, cmd, strlen(cmd));
+ cmd = "{ \"command\": [\"set_property\", \"pause\", false] }\n";
+ write(p->ipc, cmd, strlen(cmd));
} else {
AppExecProc(play_next, NULL);
}