|
|
@ -170,14 +170,15 @@ void AutoType::performGlobal(){ |
|
|
|
Window w; |
|
|
|
Window w; |
|
|
|
int revert_to_return; |
|
|
|
int revert_to_return; |
|
|
|
XGetInputFocus(d, &w, &revert_to_return); |
|
|
|
XGetInputFocus(d, &w, &revert_to_return); |
|
|
|
char** list; |
|
|
|
char** list = NULL; |
|
|
|
int tree; |
|
|
|
int tree; |
|
|
|
do { |
|
|
|
do { |
|
|
|
XTextProperty textProp; |
|
|
|
XTextProperty textProp; |
|
|
|
XGetWMName(d, w, &textProp); |
|
|
|
if (XGetWMName(d, w, &textProp) != 0) { |
|
|
|
int count; |
|
|
|
int count; |
|
|
|
Xutf8TextPropertyToTextList(d, &textProp, &list, &count); |
|
|
|
if (Xutf8TextPropertyToTextList(d, &textProp, &list, &count)<0) return; |
|
|
|
if (list) break; |
|
|
|
if (list) break; |
|
|
|
|
|
|
|
} |
|
|
|
Window root = 0; |
|
|
|
Window root = 0; |
|
|
|
Window parent = 0; |
|
|
|
Window parent = 0; |
|
|
|
Window* children = NULL; |
|
|
|
Window* children = NULL; |
|
|
|