Implement jumping to windows by matching their class / title

This commit is contained in:
Michael Stapelberg
2009-03-31 10:46:12 +02:00
parent e295ab302b
commit f72214725c
4 changed files with 92 additions and 12 deletions

View File

@ -213,11 +213,13 @@ char *convert_utf8_to_ucs2(char *input, int *real_strlen) {
int rc = iconv(conversion_descriptor, (void*)&input, &input_size, &output, &output_size);
if (rc == (size_t)-1) {
perror("Converting to UCS-2 failed");
*real_strlen = 0;
if (real_strlen != NULL)
*real_strlen = 0;
return NULL;
}
*real_strlen = ((buffer_size - output_size) / 2) - 1;
if (real_strlen != NULL)
*real_strlen = ((buffer_size - output_size) / 2) - 1;
return buffer;
}