On Thu, Jan 01, 2004 at 06:29:26AM -0800, Alexander Hvostov wrote:
> Sometimes, an X client will screw up various things on the server, like 
> grabbing the
> mouse without releasing it, changing the video mode and not changing it back, 
> and so
> forth. While it would be useful for the server to clean up after such a 
> client if it
> disconnects, it would be useful in any case to have another magic button 
> (along the
> lines of ctrl-alt-backspace) to forcibly restore sanity. In particular, it 
> should:
> 
> *     Release the mouse cursor if it was grabbed.
> *     Restore the mouse cursor bitmap/whatever to the standard arrow cursor.
> *     Release the keyboard.
> *     Restore the video mode to what it was when the server was started.

SERVERFLAGS SECTION
[...]
       Option "AllowDeactivateGrabs" "boolean"
              This  option  enables  the use of the Ctrl+Alt+Keypad-Divide key 
sequence to deactivate any active keyboard and mouse grabs.  Default:
              off.

       Option "AllowClosedownGrabs" "boolean"
              This option enables the use of the Ctrl+Alt+Keypad-Multiply key 
sequence to kill clients with an active keyboard or mouse grab as well
              as killing any application that may have locked the server, 
normally using the XGrabServer(3x) Xlib function.  Default: off.
              Note  that  the  options  AllowDeactivateGrabs and 
AllowClosedownGrabs will allow users to remove the grab used by screen 
saver/locker
              programs.  An API was written to such cases. If you enable this 
option, make sure your screen saver/locker is updated.


-- 
Daniel Stone                                                <[EMAIL PROTECTED]>
Debian X Strike Force:                    http://people.debian.org/~branden/xsf/

Attachment: pgpF7MSzN1T6U.pgp
Description: PGP signature

Reply via email to