From b1ba85934f96a2d2d8dd281117a105f815843340 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(-) diff --git a/src/procman.cpp b/src/procman.cpp index 3cc51a5..29b9087 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