home *** CD-ROM | disk | FTP | other *** search
- From: stroyan@hpfcso.FC.HP.COM (Mike Stroyan)
- Date: Fri, 24 Jul 1992 16:23:20 GMT
- Subject: Re: Can you hide or lock your original xterm???
- Message-ID: <7320044@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!darwin.sura.net!mips!sdd.hp.com!hpscdc!hplextra!hpfcso!stroyan
- Newsgroups: comp.windows.x
- References: <1992Jul21.152726.16016@porthos.cc.bellcore.com>
- Lines: 23
-
- > I am writting a Motif program to be run on a touch screen terminal.
- > Unfortunately, even though I can keep the user from exiting the program,
- > I cannot keep him or her from grabbing the original xterm and selecting
- > close (which logs the terminal completely off). Is there a way to hide this
- > icon or lock it without stopping the application?
- >
- > Thank you in advance ;-)
- >
- > Robert Buccigrossi
-
- You could try something like this.
-
- #include <X11/Xlib.h>
- main()
- {
- Display *display = XOpenDisplay("");
- XUnmapWindow(display, (Window) atoi(getenv("WINDOWID")));
- XSync(display, 0);
- sleep(5);
- XCloseDisplay(display);
- }
-
- Mike Stroyan, mike_stroyan@fc.hp.com
-