Solved

Lock the x terminal / display.

Posted on 2004-04-21
6
227 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
6 Comments
 
LVL 12

Accepted Solution

by:
stefan73 earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now