mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Possible fix for issue #32
This commit is contained in:
parent
702ff68eb4
commit
9d531043e3
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ char* window_get_text_prop( Window w, Atom atom )
|
|||
if ( prop.encoding == XA_STRING ) {
|
||||
res = allocate( strlen( ( char* )prop.value )+1 );
|
||||
strcpy( res, ( char* )prop.value );
|
||||
} else if ( XmbTextPropertyToTextList( display, &prop, &list, &count ) >= Success && count > 0 && *list ) {
|
||||
} else if ( Xutf8TextPropertyToTextList( display, &prop, &list, &count ) >= Success && count > 0 && *list ) {
|
||||
res = allocate( strlen( *list )+1 );
|
||||
strcpy( res, *list );
|
||||
XFreeStringList( list );
|
||||
|
|
Loading…
Reference in a new issue