?
Solved

Lock the x terminal / display.

Posted on 2004-04-21
6
Medium Priority
?
251 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 200 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 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