How to change focus in X-Windows?

I am working on an old Motif based software application for Linux. I want to be able to programmatically change the active window of our application. I can redirect the input with the XSetInputFocus () function, and the beginning of the keyboard input will start, but the XReconfigureWMWindow () and XRaiseWindow () functions just don't work.

I read that window managers are trying to stop this behavior, so I tried to disable configure redirection, but that won't work either. Any ideas how to make one of my own windows on top of the window stack?

+3
source share
2 answers

wmctrl ( , Debian/Ubuntu ), . , , , .

+2

, , . , "focus follow mouse", , , , ( XWarpMouse?).

0

Source: https://habr.com/ru/post/1704823/


All Articles