Beispiel #1
0
static void titleinfoUpdateMachine(CompWindow * w)
{
	TITLEINFO_WINDOW(w);

	if (tw->remoteMachine)
		free(tw->remoteMachine);

	tw->remoteMachine = titleinfoGetTextProperty(w->screen->display, w->id,
						     XA_WM_CLIENT_MACHINE);

	if (titleinfoGetShowRemoteMachine(w->screen))
		titleinfoUpdateVisibleName(w);
}
Beispiel #2
0
static void titleinfoUpdateTitle(CompWindow * w)
{
	CompDisplay *d = w->screen->display;
	char *title;

	TITLEINFO_WINDOW(w);

	title = titleinfoGetUtf8Property(d, w->id, d->wmNameAtom);

	if (!title)
		title = titleinfoGetTextProperty(d, w->id, XA_WM_NAME);

	if (tw->title)
		free(tw->title);

	tw->title = title;
	titleinfoUpdateVisibleName(w);
}
Beispiel #3
0
static void
titleinfoUpdateMachine (CompWindow *w)
{
	TITLEINFO_WINDOW (w);

	if (tw->remoteMachine)
		free (tw->remoteMachine);

	tw->remoteMachine = titleinfoGetTextProperty (&display, w->id,
	                                              XA_WM_CLIENT_MACHINE);

	const BananaValue *
	option_show_remote_machine = bananaGetOption (bananaIndex,
	                                              "show_remote_machine",
	                                              w->screen->screenNum);

	if (option_show_remote_machine->b)
		titleinfoUpdateVisibleName (w);
}