Solved

Lock the x terminal / display.

Posted on 2004-04-21
6
240 Views
Last Modified: 2010-04-21
Hi - I am trying to understand how we can lock the x terminal / display on RedHat?
 Are there some API's that we can use for this purpose ?

Basically lock the x display just like Xlock does but I would like to implement my own and not use xlock.

Thanks.
0
Comment
Question by:menong120699
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 12

Accepted Solution

by:
stefan73 earned 50 total points
ID: 10886291
Hi menong,
Check the source code of xlockmore at
http://debian.mirror.solnet.ch/debian-archive/dists/Debian-1.1/source/x11/xlockmore-3.9-0.tar.gz

You'll find the source for locking in xlock.c

Cheers,
Stefan
0
 
LVL 9

Assisted Solution

by:Alf666
Alf666 earned 50 total points
ID: 10892025
Basically, "locking" just means grabbing the keyboard and mouse events. You can use :

XGrabKeyboard
XGrabPointer

use man :

man XGrabKeyboard
man XGrabPointer

0
 

Author Comment

by:menong120699
ID: 10901277
How can I make use of xlock.java ? I want to launch my own Java login GUI instead of the standard login and password gui that xlock provides.

Also, which file does xlock use to implement the login/passwd GUI ?

Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question