From ab2f7deb9c8f87b4d588c69116ed6698608c0c96 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 31 Dec 2017 02:15:11 +0100 Subject: procman.cpp: Fix build warning: argument 1 null where non-null expected --- src/procman.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/procman.cpp') diff --git a/src/procman.cpp b/src/procman.cpp index ea50cb2..9dbaf21 100644 --- a/src/procman.cpp +++ b/src/procman.cpp @@ -596,15 +596,11 @@ cb_server (const gchar *msg, gpointer user_data) procman_debug("Changing to PROCMAN_TAB_DISKS via bacon message"); set_tab(GTK_NOTEBOOK(procdata->notebook), PROCMAN_TAB_DISKS, procdata); } - } else - timestamp = strtoul(msg, NULL, 0); - - if (timestamp == 0) - { - /* fall back to rountripping to X */ - timestamp = gdk_x11_get_server_time (window); } + /* fall back to rountripping to X */ + timestamp = gdk_x11_get_server_time (window); + gdk_x11_window_set_user_time (window, timestamp); gtk_window_present (GTK_WINDOW(procdata->app)); -- cgit v1.2.1