Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mainley fedora core ... and whatever other distro helps reduce my work load at the moment.
Posts: 16
Rep:
command line for switching xwindow focus
We are running a program from a bash script and that program launches several other programs in X. We would like the program launched from the bash script to remain on top with focus however the other programs take focus.
So is there a way from the cli to reset focus to the main app?
The reason for this is simple it is a kiosk style app with no user input whatsoever(no keyboard no mouse). So maybe a something that simulates keyboard input to <alt-tab> would work but I suspect there is something else to set focus with a pid or application name.
What are the options or is this a big dead end? I did some googleing but all I came up with was a setfocus from win32 api which obviously will not work in linux.
Distribution: Mainley fedora core ... and whatever other distro helps reduce my work load at the moment.
Posts: 16
Original Poster
Rep:
Thanks cool program and I suggest it for people using all major window managers as it is for X11 and very handy for many applications. We are using blackbox which this does work with devilspie but it never focuses the window...it gives an error:
(devilspie:16044): Wnck-Warning **: Recieved a timestamp of 0; window activation may not function properly.
All the above being the case(devils pie simply uses standard x11 calls) is it possible to force X11 to only ever have focus on a specific window regardless of timestamp?
From looking at the comments, it looks like if wnck is older than 2.9.92 that devilspie will not pass timestamps. You can force the use of timestamps in the configure; that might resolve your problem.
Distribution: Mainley fedora core ... and whatever other distro helps reduce my work load at the moment.
Posts: 16
Original Poster
Rep:
Sorry for being so dull but I have looked at several tutorials on devilspie. I have not seen a reference to force or timestamp. Care to clear this up for me? Maybe point me to an example? Many thanks!
If your environment includes a version of libwnck that is older than 2.9.92, the configure scripts for devilspie disable the use of timestamps, which your error indicated. What I was suggesting is that you could modify the configure scripts to always assume that libwnck is newer than 2.9.92 by disabling the check and manually setting the result.
If that's not something you feel comfortable with, perhaps you could contact the devilspie author and see if he could include support for your environment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.