Well, the subject. I have searched a lot, but unfortunately, found nothing. Is there some document describing this format? Or the structure need to be extracted out from the xauth source files? Answer Probably not exactly what you are looking for but putting in an answer just for the formatting. The .Xauthority is an array of structures: You would probably
Tag: x11
How to capture and modify mouse events in linux?
I want to write a program that changes the behavior of mouse when certain key is pressed. But I am not quite familiar with event mechanisms in linux. My guess is that I need to filter through the “event queue” looking for “key press” and “mouse press” events, and somehow modify the mouse event before passing it on or discard
How to apply ‘Qt.WA_X11NetWmWindowTypeDesktop’ attribute to my QML window by using PyQt5
I am working on a desktop environment and I want my QML window as my main desktop window. I am integrating QML with PyQt5. here is my code main.qml main2.qml I tried adding window.setAttribute(Qt.WA_X11NetWmWindowTypeDesktop, True) in code but it doesn’t work. Also I tried adding Qt.Desktop flag also this doesn’t work. At the first time, it gave me error AttributeError:
How does evdev determine whether or not to move the x11 cursor?
I’m starting to dig into the evdev api on linux for the purpose of playing around with uinput emulation. I noticed that between a joystick and a touch pad, there are different button/key event codes to distinguish between joypad button presses and mouse clicks. But both devices have event codes for ABS_X and ABS_Y axis. So how does x11 know
How I can find out if a Linux system uses Wayland or X11?
Used language I am using C++14 with cmake for my program. Problem: I would like to know how I can find out if a Linux system uses Wayland or X11 as a window system to be able to use both APIs in my source code without conflict. Thus creating a window with Wayland when Wayland is available and otherwise use
Working with multiple displays – will XOpenDisplay(NULL) sometimes fail to get current display of a window?
I have an *.SO library, which when called from an application, removes window decorations from the specified window. Here is my code: My question – with my current code set up – will it sometimes fail to remove window decorations depending on which display the window is currently displayed on? My impression is that XOpenDisplay(NULL) will return the default or
What’s the difference between XOpenDisplay(0) and XOpenDisplay(NULL)?
What’s the difference between Display XOpenDisplay(0) and XOpenDisplay(NULL)? In the above code I wrote an *.SO library for Linux that when called removes the window decorations of the specified window. In the line of that code which reads: I have tried replacing that with: And both usages seem to successfully remove the window decorations on the Ubuntu 16.04 LTS laptop
Hook and block globally mouse in X11
I need to hook globally mouse clicks and block last click if delay between two clicks is less than was set. I wrote it for windows using WM_MOUSE_LL hook. I was unable to find any solution for me. Is it even possible to globally block mouse click in X11 ? Windows full code Answer As far as I know the
How to make an overlay which capture no events
I would like to draw some sort of window on top of all the other windows. For example, to display some debugging infos (like conky) or things like a timer. The main thing is that I would like to able to continue using the other windows while using it (the events go through transparently). I’ve tried doing it with pygtk,
X11: XQueryPointer gives me fuzzy Windows
I am currently trying to find if one of my Windows is underneath the Mouse cursor. This is not done in my process that creates the window, but in another process. What I am currently doing is finding the Window via the process PID (and I made sure _NET_WM_PID is set correctly by my program). This basically works via XQueryTree