Giter VIP home page Giter VIP logo

Comments (3)

jordansissel avatar jordansissel commented on June 21, 2024

select_window takes the window you clicked on and tries to find the "client" window using a similar (or the same?) technique as xwininfo and xprop., iirc.

getwindowfocus should use the same method.

Both take the window given and search up the window tree for the first parent window with a WM_STATE property set on it.

Hmm...

from xdotool.

AlisterH avatar AlisterH commented on June 21, 2024

Same issue here:

#  xdotool getactivewindow
41943049
#  xdotool getactivewindow -- getwindowname
urxvt
#  xdotool selectwindow
8389062
# printf "%x" 8389062; echo ""
8001c6
#  xwininfo -tree -root|grep 8001c6 -A 62
     0x8001c6 (has no name): ()  1360x767+0+1  +0+1
        24 children:
        0x2800009 "urxvt": ("urxvt" "URxvt")  1360x737+0+30  +0+31
           2 children:
           0x2800010 (has no name): ()  12x737+1348+0  +1348+31
           0x280000e (has no name): ()  1344x731+2+2  +2+33
        0x8001f2 (has no name): ()  26x1+409+410  +409+411
        0x8001f1 (has no name): ()  1x1+0+0  +0+1
        0x8001f0 (has no name): ()  1x25+435+386  +435+387
        0x8001ef (has no name): ()  26x1+1+410  +1+411
        0x8001ee (has no name): ()  1x1+0+0  +0+1
        0x8001ed (has no name): ()  1x25+0+386  +0+387
        0x8001ec (has no name): ()  382x1+27+410  +27+411
        0x8001eb (has no name): ()  1x1+0+0  +0+1
        0x8001e6 (has no name): ()  1x1+0+0  +0+1
           4 children:
           0x8001ea (has no name): ()  1x1+0+0  +0+1
           0x8001e9 (has no name): ()  1x1+0+0  +0+1
           0x8001e8 (has no name): ()  1x1+0+0  +0+1
           0x8001e7 (has no name): ()  1x1+0+0  +0+1
        0x8001de (has no name): ()  1x361+435+26  +435+27
        0x8001dd (has no name): ()  1x361+0+26  +0+27
        0x8001d7 (has no name): ()  1360x1+0+29  +0+30
        0x8001d6 (has no name): ()  1x25+435+1  +435+2
        0x8001d5 (has no name): ()  26x1+1334+0  +1334+1
        0x8001d4 (has no name): ()  26x1+0+0  +0+1
        0x8001d3 (has no name): ()  1310x1+26+0  +26+1
        0x8001d2 (has no name): ()  1x25+0+1  +0+2
        0x8001d1 (has no name): ()  1360x28+0+1  +0+2
           12 children:
           0x8001e5 (has no name): ()  22x22+1285+3  +1285+5
           0x8001e4 (has no name): ()  24x24+3+2  +3+4
           0x8001e3 (has no name): ()  22x22+0+0  +0+2
           0x8001e2 (has no name): ()  22x22+30+3  +30+5
           0x8001e1 (has no name): ()  22x22+1335+3  +1335+5
           0x8001e0 (has no name): ()  22x22+1310+3  +1310+5
           0x8001df (has no name): ()  1227x24+55+2  +55+4
           0x8001dc (has no name): ()  3x28+431+0  +431+2
           0x8001db (has no name): ()  25x3+409+0  +409+2
           0x8001da (has no name): ()  3x28+0+0  +0+2
           0x8001d9 (has no name): ()  25x3+0+0  +0+2
           0x8001d8 (has no name): ()  384x3+25+0  +25+2
        0x8001cc (has no name): ()  434x1+1+409  +1+410
           2 children:
           0x8001ce (has no name): ()  26x1+408+0  +409+410
           0x8001cd (has no name): ()  26x1+0+0  +1+410
        0x8001cb (has no name): ()  1x378+434+31  +434+32
           1 child:
           0x8001d0 (has no name): ()  1x23+0+355  +434+387
        0x8001ca (has no name): ()  1360x1+0+29  +0+30
        0x8001c9 (has no name): ()  1x378+1+31  +1+32
           1 child:
           0x8001cf (has no name): ()  1x23+0+355  +1+387
        0x8001c7 (has no name): ()  1360x737+0+30  +0+31
           1 child:
           0x8001c8 (has no name): ()  1360x737+0+0  +0+31
     0x802acc (has no name): ()  1360x767+0+1  +0+1
        24 children:
        0x1a0006c "bash scripting - how to grep and print the next N lines after the hit? - Super User - Google Chrome": ("google-chrome (/home/spot/.config/chrome)" "Google-chrome")  1360x767+0+0  +0+1
        0x802af8 (has no name): ()  1x1+0+0  +0+1
        0x802af7 (has no name): ()  1x1+0+0  +0+1
        0x802af6 (has no name): ()  1x1+0+0  +0+1
        0x802af5 (has no name): ()  1x1+0+0  +0+1
# printf "%x" 8399564; echo ""
802acc

from xdotool.

AlisterH avatar AlisterH commented on June 21, 2024

Is it something different about our X11, or how it is run?
I am in Fatdog Linux (810).

from xdotool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.