Skip to content
Advertisement

Tag: x11

What is the internal format of .Xauthority file?

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

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 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

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

Advertisement