projects
/
experiments
/
x-selection-debug.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
543ca83
)
dump_selections.sh: use a more robust way to get the window name
author
Antonio Ospite <ao2@ao2.it>
Mon, 19 Jun 2017 14:27:51 +0000
(16:27 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 19 Jun 2017 14:44:13 +0000
(16:44 +0200)
dump_selections.sh
patch
|
blob
|
history
diff --git
a/dump_selections.sh
b/dump_selections.sh
index
1f9da7b
..
9954a46
100755
(executable)
--- a/
dump_selections.sh
+++ b/
dump_selections.sh
@@
-10,7
+10,7
@@
get_owner() {
xwininfo -id $OWNER > /dev/null 2>&1;
if [ $? -eq 0 ];
then
xwininfo -id $OWNER > /dev/null 2>&1;
if [ $? -eq 0 ];
then
- OWNER_NAME=$(xprop -id $OWNER
WM_NAME
| cut -d ' ' -f 3-)
+ OWNER_NAME=$(xprop -id $OWNER
| grep "^WM_NAME"
| cut -d ' ' -f 3-)
if [ -z "$OWNER_NAME" ];
then
OWNER_NAME="$OWNER"
if [ -z "$OWNER_NAME" ];
then
OWNER_NAME="$OWNER"