From 072baa9c027845fad438331ee0bde5f3da03d448 Mon Sep 17 00:00:00 2001 From: QC Date: Mon, 26 Jan 2015 22:43:57 +0100 Subject: [PATCH] Fix printing Warning about XID. --- source/rofi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/rofi.c b/source/rofi.c index 78fa8723..ace078f8 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -190,7 +190,7 @@ static void focus_window_i3 ( const char *socket_path, Window id ) // Formulate command - snprintf ( command, 128, "[id=\"%d\"] focus", id ); + snprintf ( command, 128, "[id=\"%ul\"] focus", id ); // Prepare header. memcpy ( head.magic, I3_IPC_MAGIC, 6 ); head.size = strlen ( command ); @@ -390,7 +390,7 @@ static void create_visual_and_colormap () */ static unsigned int color_get ( Display *display, const char *const name ) { - XColor color = { 0, }; + XColor color = { 0, }; // Special format. if ( strncmp ( name, "argb:", 5 ) == 0 ) { color.pixel = strtoul ( &name[5], NULL, 16 );