HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Looking for an Xwindows "raise/lower window" f...
Operating System - HP-UX
1834007
Members
1832
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 11:09 AM
03-16-2001 11:09 AM
Hello all,
I am needing to control the local window stack attributes from a shell script.
The basic functionality I need is to be able to make a call to the dtwm window manager (I assume) to bring a certain window into focus (raise it) on demand. Is there a built in utility that can do this from the command line?
I am sure I will need to aquire the window name/number as well so is there a uitility for listing the windows that a current shell owns?
I have read many man pages so far such as xsession, twm, X, dtwm and so on but all I see is information on defaults and start up files for windows...nothing on real-time attribute manipulation.
Thanks for any advice you can offer.
Regards,
Ken
I am needing to control the local window stack attributes from a shell script.
The basic functionality I need is to be able to make a call to the dtwm window manager (I assume) to bring a certain window into focus (raise it) on demand. Is there a built in utility that can do this from the command line?
I am sure I will need to aquire the window name/number as well so is there a uitility for listing the windows that a current shell owns?
I have read many man pages so far such as xsession, twm, X, dtwm and so on but all I see is information on defaults and start up files for windows...nothing on real-time attribute manipulation.
Thanks for any advice you can offer.
Regards,
Ken
Imagine if there were no hypothetical situations
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 01:18 PM
03-16-2001 01:18 PM
Solution
There is no built-in command for manipulating other windows from shell scripts. You can raise a window by id or name using the "xwit" command available from
http://hpux.cs.utah.edu/hppd/hpux/X11/Misc/xwit-1.0/
If you just want to raise a window you could also to that with a dtksh script like the one I have attached.
X terminal emulators such as dtterm and xterm will set the environment variable WINDOWID to their toplevel window. You can use that from shells that inherit the environment of the shell that the terminal emulator started.
http://hpux.cs.utah.edu/hppd/hpux/X11/Misc/xwit-1.0/
If you just want to raise a window you could also to that with a dtksh script like the one I have attached.
X terminal emulators such as dtterm and xterm will set the environment variable WINDOWID to their toplevel window. You can use that from shells that inherit the environment of the shell that the terminal emulator started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 04:21 PM
03-16-2001 04:21 PM
Re: Looking for an Xwindows "raise/lower window" function
Hey thanks very much for the help Mike!
Your solution was just what I asked for. However, after I invoked the script I realized that I had assumed the "Raise" event would also change the input focus...thought they were one in the same. So after a little reading on the subject I tried adding:
XtRealizeWidget $TOPLEVEL
to the "raise" script you provided and that did the trick.
Once again thanks very much for the help,
Ken
Your solution was just what I asked for. However, after I invoked the script I realized that I had assumed the "Raise" event would also change the input focus...thought they were one in the same. So after a little reading on the subject I tried adding:
XtRealizeWidget $TOPLEVEL
to the "raise" script you provided and that did the trick.
Once again thanks very much for the help,
Ken
Imagine if there were no hypothetical situations
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP