summaryrefslogtreecommitdiff
path: root/src/procman.cpp
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-31 02:15:11 +0100
committermonsta <[email protected]>2018-03-20 11:04:47 +0300
commitab2f7deb9c8f87b4d588c69116ed6698608c0c96 (patch)
tree17f85b009f40fdf32909320ea737a1c956957666 /src/procman.cpp
parentab71db7f5014b90388a205eb042b8215e5450c58 (diff)
downloadmate-system-monitor-ab2f7deb9c8f87b4d588c69116ed6698608c0c96.tar.bz2
mate-system-monitor-ab2f7deb9c8f87b4d588c69116ed6698608c0c96.tar.xz
procman.cpp: Fix build warning: argument 1 null where non-null expected
Diffstat (limited to 'src/procman.cpp')
-rw-r--r--src/procman.cpp10
1 files changed, 3 insertions, 7 deletions
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));