xlib Questions
4
How to get top-level window position relative to root window (i.e. whole screen) using plain ol' xlib (or brand new XCB)?
2
Solved
I am writing a Xlib app where I want the window to be centered. I have used XMoveWindow with (desktopWidth - width) / 2, (desktopHeight - height) / 2 and it is roughly in the right place.
However ...
3
Solved
I'd like to access my Ubuntu 16.10 VPS (Contabo) with using a GNOME environment with VNC, however I am still facing some issues that I couldn't solve so far. To install and configure the software I...
Pouliot asked 17/2, 2017 at 11:5
1
Solved
python-xlib - how to deterministically tell whether display output is in extending or mirroring mode
It's not clear to me from the documentation
http://python-xlib.sourceforge.net/doc/html/python-xlib_toc.html
how I could deterministically check whether a given display output (eg: HDMI-1) is exte...
3
Solved
I am trying to capture an image of the screen for use in screencasting. Thus I need a fast solution, and cannot rely on shell programs such as import or xwd.
This is the code I have written so fa...
Cricoid asked 23/11, 2011 at 22:1
1
Self resolved
It's posted below as an answer.
Trying to get what xinput test-xi2 --root prints with python xlib.
Using version 1.9 from github: https://github.com/python-xlib/python-xlib
event._dat...
1
i'm trying to send mouse click event using xlib in a ubuntu 12.04, all works when i do the click in the desktop bar icons and works when i do click in the title bar of each window (close, minimize,...
Daddylonglegs asked 1/2, 2013 at 23:8
1
Solved
I'm trying to listen to keyboard input (using an X11 event loop) and get scancodes. These scancodes should refer to the physical location of a key, rather than the character it types. The problem i...
3
Solved
I have written an SFML C++ game, and tried to start using threads, but after a while everything crashes. After searching I found out the fix seems to be to call XInitThreads();
but this does not wo...
3
I am trying to write a program that tracks when the active window changes using Xlib. I am have trouble figuring out the best way to do this. These are my ideas so far:
Every second use _NET_ACTI...
1
Solved
I have created a video player in Gtk3 using Gstreamer in Python3. It works except when I add a GtkMenuBar (place 2). It will then either show a black screen, or fail with an exception. The exceptio...
2
Solved
I would like to create a semi transparent white window in XLib, but the window is not semi translucent, it remains fully opaque. I use the compton compositor and there are transparent windows in th...
Vaudeville asked 6/10, 2016 at 21:48
1
Solved
I am trying to write a simple program that changes the
name of a window with a certain window id.
/* See LICENSE file for copyright and license details. */
#include <err.h>
#include <std...
1
Solved
2
Solved
I need to draw a shape directly on screen (a little arrow) in X11, it serves as an overlay. I am searching for about an hour no with no good results. Could anyone provide me a good entry point for ...
3
im trying to write a C code to get the title of the Active Window in my Linux System, but the Function XFetchName always returnes zero, i also tried XGetWMName, same result...
but using xprop, i ca...
1
1
I'm using the Xtst extentsion to type and do stuff using the mouse
I have not encoutnered any problems untill I started using xtst to move and click the mouse.
for example, here's a set of action:...
1
Solved
Currently I am in charge of developing a (C++) window class for a little project; the goal is to keep dependencies at a bare minimum.
The implementation for Win32/WinAPI works as supposed, however,...
1
I have just started using Graphics in C, and I encountered this error while running a simple program that draws concentric circles:
user@user:~/Documents/C$ gcc circle.c -lX11 -lgraph
user@user:~/...
1
Solved
XGetImage takes 3-4 seconds to execute and completely freezes X11
Display *display;
display = XOpenDisplay(NULL);
if (!display) {fprintf(stderr, "unable to connect to display");return 7;}
Window...
3
I want to find C / Xorg code to 'enter' a left mouse button click. I'd expect a single line of code but the only things I've found written in C are about two dozen lines long and they don't work an...
2
Solved
I'm writing an applicaiton for gentoo linux and redhat linux, one of the funciton always crashes on the redhat machine
usleep(100000);
Display *display;
display = XOpenDisplay(NULL);
Window w;
...
2
Solved
I am using XShm extension to draw and manipulate images in Linux.
In order to not have screen flickering, I am passing send_event = TRUE to XShmPutImage and then waiting for the event with XIfEven...
2
Solved
I am trying to create a game loop for an xlib window, but I cannot manage to paint the window correctly. Right now I am creating a window with XCreateSimpleWindow(...), and using a for loop to pain...
© 2022 - 2024 — McMap. All rights reserved.