xlib Questions

11

From the man page for XFillPolygon: If shape is Complex, the path may self-intersect. Note that contiguous coincident points in the path are not treated as self-intersection. If shape is Conv...
Shorter asked 23/1, 2009 at 5:16

2

Solved

Consider an application where it's desirable to grab the keyboard when focused in order to capture all window manager commands (Alt+F4 and whatnot) for processing. Now, this has the downside that t...
Garlicky asked 25/9, 2010 at 21:29

5

Solved

I'm making some program with python3 and XLib. On my PC with Ubuntu 14.04 everything works fine but when I try to run my app in my notebook with manualy installed Xorg I get exception: Xlib.error...
Ebonieebonite asked 9/8, 2015 at 9:40

5

I'm running Ubuntu and I want to get the number of attached monitors, their current resolution and, if possible, their position in relation to each other. Because I don't like parsing Console outpu...
Ceremony asked 2/1, 2012 at 22:7

4

Solved

I tried to write a program which hooks keyboard messages to pronounce the name of each key whenever it is pressed in Ubuntu (KDE); without interfering with normal action of keyboard in programs (ju...
Palomino asked 30/3, 2014 at 20:31

4

Solved

Under windows, the GUI thread usually call GetMessage to waiting for message, when another thread use PoseMessage put a message into the queue, then the GUI thread will return GetMessage (quit bloc...
Knotted asked 21/12, 2011 at 15:33

4

Solved

I need to find window position and size, but I cannot figure out how. For example if I try: id.get_geometry() # "id" is Xlib.display.Window I get something like this: data = {'height': 2540, 'w...
Tensimeter asked 8/10, 2012 at 4:0

2

Using Xlib, can we query the current X server time? With that I mean the value that would be returned in the time field of an XEvent if we were to receive an event right now. Preferably without op...
Petronel asked 17/5, 2020 at 9:34

3

I'm experimenting with XReparentWindow with the end goal to aggregate windows of multiple processes into one "cockpit" simulating process. Experiments with XReparentWindow works sporadically; somet...
Rachael asked 15/2, 2019 at 9:30

3

Solved

I've tried to create a fully transparent window using C++ & X11. It should not consume any events and simply forwards them to the windows below. Some kind of GlassPane as it's known for Java-Wi...
Cocke asked 1/12, 2010 at 16:28

2

Solved

How does the following code remove window borders? //note the struct is declared elsewhere, is here just for clarity. //code is from [http://tonyobryan.com/index.php?article=9][1] typedef struct H...
Producer asked 27/2, 2011 at 16:19

5

I have a transparent, watermark like application that is written with XLib in C. Currently if you click anywhere on the application nothing happens but I would like it to pass mouse input to whatev...
Attainable asked 6/5, 2013 at 14:30

2

Solved

I would like to find a linux-wide (insofar as it uses X11) way to control the window geometry of my application, which I program using Python. All my researches point to using python-xlib, which ha...
Rakish asked 30/5, 2011 at 8:25

1

I'm trying to catch shortkeys (e.g. Ctrl Alt direction key) in a Python script running in the background. When I try to do this, I'm encountering errors. My code is as follows: import Xlib import ...
Dextran asked 22/9, 2015 at 19:47

1

I'm working on a window manager, mainly as an exercise, and I'm facing a problem. I would like to be able to raise the clicked window to the top of the stack. Currently, I am using XGrabButton on B...
Amr asked 18/9, 2017 at 21:9

6

I would like to capture the user name logged in through GUI in my program. My program is running as a daemon from root login. If a non root user logs in through GUI my program should be notified. ...
Wilhelmina asked 13/7, 2012 at 8:58

9

Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program name, etc. I'm using Qt un...
Deming asked 11/1, 2010 at 11:40

1

Solved

I'd like to monitor which window is active on a Linux system running X, and when that active window gets resized or moved. I can monitor the active window (it's held in the _NET_ACTIVE_WINDOW prope...
Graven asked 9/2, 2020 at 20:33

3

Solved

I'm trying to create a small window manager (just for fun), but I'm having problems in handling windows created by Firefox (only with that application, other apps works fine) The problem is, afte...
Finbur asked 21/7, 2015 at 9:43

4

Solved

I have a fairly simple "Hello World" in X11 at end of question. But when it exits I get the run time error messages below: $ ./xtest XIO: fatal IO error 11 (Resource temporarily unavailable) on X ...
Tetragram asked 18/11, 2011 at 0:53

2

Solved

"Python Xlib" (http://pypi.python.org/pypi/Python%20Xlib) is a low level python library for working with xlib. I have installed it on my Ubuntu Linux machine via apt, i.e. sudo aptitude i...
Apoplectic asked 7/4, 2012 at 13:5

1

Solved

Is it possible to draw transparent window without title bar, close button, responses on mouse buttons using xlib. So just border with specific color and width? Something like this orange rectangl...
Vinificator asked 17/7, 2019 at 14:22

1

I've been reading a few articles about input latency lately: https://danluu.com/term-latency/ https://pavelfatin.com/typing-with-pleasure/ And I've been trying to improve the user experience of ...
Dream asked 27/4, 2018 at 15:16

2

Solved

Now I am feeling quite stupid. I am trying to do some stuff with xlib in Qt Creator. My code: #include <QtCore/QCoreApplication> #include <X11/Xlib.h> int main(int argc, char *argv[]...
Moonseed asked 4/6, 2010 at 15:0

1

Solved

I'd like to be able to grab a list of all windows that are open on a Linux desktop from a Python script. I suppose this would require working through Xlib or some other x11 or xdisplay library. Thi...
Helicograph asked 27/9, 2018 at 22:25

© 2022 - 2024 — McMap. All rights reserved.