Tk Source Code

View Ticket
Login
Ticket UUID: 2811373
Title: global grab on windows xp
Type: Bug Version: obsolete: 8.5.7
Submitter: quantifier Created on: 2009-06-24 08:27:23
Subsystem: 56. [grab] Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-12-28 05:01:35
Resolution: Rejected Closed By: patthoyts
    Closed on: 2009-12-27 17:40:53
Description:
[grab] manpage says:
A global grab locks out all applications on the screen, so that only the given subtree of the grabbing application will be sensitive to pointer events (mouse button presses, mouse button releases, pointer motions, window entries, and window exits). During global grabs the window manager will not receive pointer events either.
[...]
During a global grab Tk grabs the keyboard so that all keyboard events are always sent to the grabbing application.

On windows xp it is still possible to interact with the rest of desktop using both mouse and keyboard.
User Comments: dkf added on 2009-12-28 05:01:35:
To reinforce, ancient versions of Windows *did* permit global grabs and they were massively (and nefariously) abused. Microsoft took them out, and did the right thing by doing so.

patthoyts added on 2009-12-28 00:40:53:

allow_comments - 1

This is a design feature of the Windows window manager. It refuses to permit an application to completely prevent the user from interacting with other applications. An application may only restrict access to its own tree.
Quite honestly, even if Windows permitted it I would not fix this. Global grabs are a horrendous idea. No app should be able to lock a user out of the rest of their desktop. Needs some modification to the manual page for windows here.