mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
Fix printing Warning about XID.
This commit is contained in:
parent
9532ad6daa
commit
072baa9c02
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ static void focus_window_i3 ( const char *socket_path, Window id )
|
||||||
|
|
||||||
|
|
||||||
// Formulate command
|
// Formulate command
|
||||||
snprintf ( command, 128, "[id=\"%d\"] focus", id );
|
snprintf ( command, 128, "[id=\"%ul\"] focus", id );
|
||||||
// Prepare header.
|
// Prepare header.
|
||||||
memcpy ( head.magic, I3_IPC_MAGIC, 6 );
|
memcpy ( head.magic, I3_IPC_MAGIC, 6 );
|
||||||
head.size = strlen ( command );
|
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 )
|
static unsigned int color_get ( Display *display, const char *const name )
|
||||||
{
|
{
|
||||||
XColor color = { 0, };
|
XColor color = { 0, };
|
||||||
// Special format.
|
// Special format.
|
||||||
if ( strncmp ( name, "argb:", 5 ) == 0 ) {
|
if ( strncmp ( name, "argb:", 5 ) == 0 ) {
|
||||||
color.pixel = strtoul ( &name[5], NULL, 16 );
|
color.pixel = strtoul ( &name[5], NULL, 16 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue