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)?
Hackler asked 27/9, 2010 at 18:55

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 ...
Macmahon asked 15/1, 2012 at 5:21

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

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...
Hanker asked 6/3, 2018 at 17:26

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...
Bazaar asked 22/8, 2017 at 4:43

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...
Squish asked 24/7, 2016 at 13:32

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...
Stowe asked 10/5, 2014 at 19:34

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...
Meddlesome asked 10/3, 2011 at 16:10

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...
Tel asked 17/10, 2016 at 4:56

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...
Photographer asked 26/9, 2016 at 8:9

1

Solved

I am currently porting one of my applications from Xlib to libxcb and I am having a bit trouble finding informations on the XInput2 extension I use at some point. Is there an XInput2 implementation...
Edme asked 7/9, 2016 at 7:29

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 ...
Exhilarant asked 17/8, 2016 at 12:39

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...
Haihaida asked 11/1, 2012 at 19:47

1

I am drawing something on screen using XWindow Drawable, Pixmap, and XRender. I can see that sometimes there is flicker. Is there a way to wait for VBLANK? I googled a lot already, feels like looki...
Capful asked 16/5, 2015 at 15:46

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:...
Amalea asked 27/10, 2015 at 0:25

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,...
Peal asked 1/6, 2016 at 12:4

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:~/...
Intensity asked 20/6, 2015 at 11:0

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...
Callas asked 7/1, 2016 at 18:14

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...
Differentiable asked 7/1, 2012 at 5:3

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; ...
Wreckfish asked 7/1, 2016 at 17:1

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...
Alanealanine asked 15/11, 2015 at 14:49

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...
Igniter asked 20/9, 2015 at 14:11

© 2022 - 2024 — McMap. All rights reserved.