Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
260 views
in Technique[技术] by (71.8m points)

linux - xdotool windowactivate not changing the z order

I am trying to bring the x window that is hidden behind another window forward by using xdotool So currently

xprop -root | grep "_NET_CLIENT_LIST_STACKING(WINDOW)"

_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x120000d, 0x500001c, 0x50000ad, 0x2e00020, 0x2e0000d, 0x3800023, 0x3e00010, 0x2e00004, 0x2e00019, 0x4000005, 0x4a0002c, 0x3c00004, 0x4e003f9, 0x5000031, 0x400000e, 0x100003c, 0x4e003ca, 0x10007a6, 0x1000247, 0x5000068

I'd like to bring window id 0x50000ad to the front

xprop -id 0x50000ad

WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _WIN_AREA(CARDINAL) = 0, 0 _WIN_WORKSPACE(CARDINAL) = 0 _WIN_STATE(CARDINAL) = 0 _NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0 _KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 0, 0 _NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_STICK _NET_WM_DESKTOP(CARDINAL) = 0 _WIN_LAYER(CARDINAL) = 4 WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "controlpanel-MainFrame" WM_CLIENT_LEADER(WINDOW): window id # 0x5000008

I tried

xdotool windowactivate

xprop -id 0x50000ad -f _WIN_LAYER 32c -set _WIN_LAYER 100

but none of the commands seem to actually reorder the stacking order...

question from:https://stackoverflow.com/questions/65924428/xdotool-windowactivate-not-changing-the-z-order

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...