Comments (2)
Looked over the Window
values for the Focus changes and they all report 0
from screenkey.
Also tried implementing XPropertyChange
to watch for _NET_ACTIVE_WINDOW
. But doesn't seem like it gets used.
+++ b/Screenkey/xlib.py
@@ -28,6 +28,16 @@ class Display(Structure):
class Visual(Structure):
pass
+class XPropertyEvent(Structure):
+ _fields_ = [('type', c_int),
+ ('serial', c_ulong),
+ ('send_event', Bool),
+ ('display', POINTER(Display)),
+ ('window', Window),
+ ('Atom', Atom),
+ ('time', Time),
+ ('state', c_uint)]
+
class XKeyEvent(Structure):
_fields_ = [('type', c_int),
('serial', c_ulong),
@@ -98,6 +108,7 @@ class XEvent(Union):
('xbutton', XButtonEvent),
('xmotion', XMotionEvent),
('xclient', XClientMessageEvent),
+ ('xproperty', XPropertyEvent),
('pad', c_long * 24)]
from screenkey.
Related Issues (20)
- Missing support for wayland HOT 5
- several lines of output HOT 5
- turn off screenkey HOT 6
- Feature request: Settings in config file HOT 5
- Font size gets smaller during usage HOT 9
- Feature request : ability to drag the widget HOT 5
- Fix SIGINT handling via GLib.unix_signal_add
- Opacity slider has no functionality HOT 7
- Track window positions when "select window" has been used
- Feature request : mouse actions around cursor HOT 1
- Problems while installing (PyGTK) HOT 3
- Is there a method to install dependencies automatically on CentOs / Redhat?
- Move to GitLab HOT 1
- How to display custom text? HOT 1
- Only show the last action
- Shift key not displayed
- Tray icon missing in Ubuntu 18.04 HOT 5
- shows incorect characters when using the numeric keypad.
- Add custom "modifiers" labels
- Add GIF animation(s) to readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenkey.