/usr/share/pyshared/wimpiggy/lowlevel/__init__.py is in python-wimpiggy 0.0.7.36+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # This file is part of Parti.
# Copyright (C) 2008, 2009 Nathaniel Smith <njs@pobox.com>
# Parti is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.
#We must import "*" or things will fail in mysterious ways!
from wimpiggy.lowlevel.bindings import *
def int32(x):
if x>0xFFFFFFFF:
raise OverflowError
if x>0x7FFFFFFF:
x=int(0x100000000-x)
if x<2147483648:
return -x
else:
return -2147483648
return x
def send_wm_take_focus(target, time):
log("sending WM_TAKE_FOCUS: %r, %r", target, time)
sendClientMessage(target, False, 0, #@UndefinedVariable"
"WM_PROTOCOLS",
"WM_TAKE_FOCUS", int32(time), 0, 0, 0)
def send_wm_delete_window(target):
log("sending WM_DELETE_WINDOW")
sendClientMessage(target, False, 0, #@UndefinedVariable"
"WM_PROTOCOLS",
"WM_DELETE_WINDOW",
const["CurrentTime"], 0, 0, 0) #@UndefinedVariable"
|