mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-02 05:12:02 +00:00
[client] main: display spice VM name in process title
This commit is contained in:
@@ -24,11 +24,12 @@
|
||||
#include "util.h"
|
||||
#include "kb.h"
|
||||
#include "message.h"
|
||||
#include "message.h"
|
||||
|
||||
#include "common/time.h"
|
||||
#include "common/debug.h"
|
||||
#include "common/array.h"
|
||||
#include "common/proctitle.h"
|
||||
#include "common/version.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
@@ -757,3 +758,17 @@ void core_updateOverlayState(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void core_setTitle(const char * title)
|
||||
{
|
||||
if (!lgCanSetProcessTitle())
|
||||
return;
|
||||
|
||||
char * string;
|
||||
if (asprintf(&string, "Looking Glass Client %s%s%s", BUILD_VERSION,
|
||||
title && *title ? ": " : "", title ? title : "") >= 0)
|
||||
{
|
||||
lgSetProcessTitle(string);
|
||||
free(string);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user