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
Tag: xlib
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
Propagating all events from a X window
I’a currently working on a small utility, it’s my first ever X project. The utility is used to draw a small circle around your mouse pointer. I use an app called Pinpoint to do the same on my Mac, it helps me find my mouse as I’m visually impaired. The utility creates an transparent X window and draw a circle
global hotkeys using xlib
I’m trying to get my C application to execute certain tasks when the ctrl+k button is pressed(OR CTRL SHIFT K not sure yet), documentation is a bit sccarce but I was able to find a cpp example and tried to mimic that code: I understand the keypresses are captured by the XGrabKey function, the xnext event reads the event and
Xlib: Adding a window to the save-set using XAddToChangeSet does not work from Java/JNI
I am getting stuck and don’t know where to look further. I have a Java application and one of its functionality is to grab some specific windows (ie third party application windows) and host them within itself (with some extra frames, etc…) The whole thing works great, except when my Java application gets killed (or crashes). When this happens, the
Get UTF-8 input with X11 Display
I’ve been trying and reading lots of resources on the internet, trying to find a way to get an UTF-8 keyboard (composed) input from a X Display. But I could not make it work. I have tried the example code from this link (exaple 11-4), but no success. I also have written a simple example (below) to try to make
Why XGrabKey generates extra focus-out and focus-in events?
Does anyone know an xlib function to trap a keypress event without losing the original focus? How to get rid of it? (or “to use XGrabKey() without generating Grab-style focusout”?) (or “How to get rid of NotifyGrab and NotifyUngrab focus events at system level?) The XGrabKey will lose focus on key pressed and restore focus on key released. And I