Questions tagged [x11]

X11 is an extensible windowing system for bitmap displays. It forms the foundation of most Unix operating system GUIs.

0
votes
1answer
7 views

How can I permanently setting the Screen Layout (arandr) in Manjaro i3?

I recently installed Manjaro i3 on my laptop and tried to connect an external Monitor, with the idea being that it extends the main Screen when it is plugged in and just uses single monitor mode when ...
0
votes
1answer
25 views

How to link Cygwin to CMake for use X11 Library on Visual Studio?

for a school project, I need to do a cross-platform application in c++ working on Linux and windows. The program need to use a CMake to build the executable. My program is using include "X11/XLib.h" ...
0
votes
1answer
8 views

Ghostscript looks for dyld library in the wrong place

I'm on Macos 10.14.5. I run Ghostscript via Macports, and recently upgraded to Ghostscript 9.27. Ever since I upgraded, most of what I use Ghostscript for (Imagemagick file conversions) doesn't work ...
0
votes
0answers
9 views

xcb_get_image_reply fails for window on another workspace/desktop

Ubuntu (xfce) provides virtual desktops aka workspaces. I would like to get a screenshot of an application which is placed on another virtual desktop. I successfully create xcb connection and I can ...
0
votes
0answers
19 views

How to change X window Properties

I am using gdm and my goal is to disable user interaction on a specific X window id. I have tried to change many X-win properties like WM_PROTOCOLS, WM_HINTS, _NET_WM_ALLOWED_ACTIONS using xprop. ...
3
votes
4answers
72 views

Why does it matter when you draw in XWindows?

I got this XWindows "hello, world" off the net. I have behavior I don't understand in a more complex program, but the simple program here also displays it: #include <X11/Xlib.h> #include <...
0
votes
0answers
27 views

How is a fullscreen window preventing a window on top of it from receiving clicks or gaining focus?

I'm trying to write a Linux program (currently using python/tkinter) to run a small window on top of a full screen game (that runs using wine). The window will display some info and needs to take ...
0
votes
0answers
26 views

Does presence of many polygons on X11 window buffer slow down drawing of other GUI elements?

We are working on a legacy X-Windows/Motif application to show real-time air traffic (flights) and convective weather in the form of polygons. The app is double-buffered, with the back buffer ...
1
vote
1answer
76 views

Tcl fileevent hangs on 64 bit version of Tcl

I am using 64 bit 8.4.3 Tcl Non-Threaded on Linux and I am facing a weird behavior. My C++ application has a timer that executes some Xt handlers using XtAppProcessEvent. One of the handlers calls ...
0
votes
0answers
8 views

How to customize the copy/paste shortcut(default to ctrl/shift+insert)

I want to remap change the copy/paste shortcut from CTRL/SHIFT+Insert to CTRL+C/V in Xfce4. I known where I can add a global keyboard shortcut but I don't known which command should I use. I've ...
1
vote
0answers
31 views

Xlib - Two issues with call to XMoveResizeWindow

I am new to Xlib (in C) and am having two issues when calling the XMoveResizeWindow function. ex. XMoveResizeWindow(display, window_id, move_x, move_y, resize_x, resize_y); 1) After the call, the ...
0
votes
1answer
38 views

Using integrated graphics for headless rendering inside a cloud docker container

Short version How can I get an integrated-graphics-accelerated headless X display running inside a Google Cloud Kubernetes Engine pod? Background I'm working on a reinforcement learning project ...
0
votes
1answer
43 views

When writing an installer for my gtk app, how should I deal with gtk dependencies?

I have installed gtk on my centos 7 machine and developed a simple gui app that uses gtk. I would now like to write an installer that installs both my app and the required gtk dependencies so that it ...
1
vote
0answers
75 views

Failure to find x11 on nana cmake

I am loading up nana source in CLion and cmake gives me the an error saying x11 is set to NOTFOUND I have tried installing x11 dev libs on ubuntu but it has not helped :/ EDIT: I have fixed the ...
0
votes
0answers
62 views

Yocto “Failed to run qemu: Could not initialize SDL(x11 not > available)”

So I've got Yocto on a local build server, coz who wants that massive build chewing up their workspace amirite? Host and Server are Arch Linux 4.19.44-1-lts Anyway I am just running up the example ...
0
votes
0answers
24 views

when x11 window parenting to Qwidget, cannot apply x11's transparent background

First, I make widget container by using QWidget::createWindowContainer(QQuickView, QWidget). Second, I make transparent x11 window. (XCreateWindow) When I create the x11 window which parent is ...
3
votes
0answers
43 views

How to start up xmonad with apps on other workspaces

I'm trying to write an xmonad.hs which, at startup, launches some apps on some workspaces. Several of these apps (e.g., atop) will run within a terminal (urxvt being my preference). This has been ...
0
votes
1answer
80 views

Need working config for TigerVNC on Fedora 30

I am been fighting with TigerVNC since around Fedora 17. Every time I started it manually I would get a black screen that would eventually display the gnome desktop and if I started with systemctl it ...
0
votes
1answer
16 views

Propper way to deinitialize GTK

I'm writing a c++ application that creates a GTK3 window at some point, while also running X11 code in other places. For the pure X11 part i'm using XOpenDisplay() to open a display. Running the X11 ...
-1
votes
0answers
38 views

Is there a universal way to detect user login/logout and screen lock in X11 session?

I need a way to detect user login/logouts and screen lock. I interested in a way, that will work on most of popular linux distros, eg. Ubuntu 16-18, CentOS 7. I have already tried watching X11 events,...
5
votes
1answer
170 views

Strange EGL behaviour with X11 and nVidia driver

I have a strange problem at the moment, I have this sample application using GTK2, OpenGL and EGL. The strange behaviour I describe only happens on nVidia GPUs on Linux with the official nVidia driver....
8
votes
0answers
135 views

EGL and OpenGL only produces black screen

I have written the attached example program that uses GTK2 in conjunction with EGL and OpenGL. On my system this works fine. On the PC of friend it only will produce a black window and I cannot put my ...
2
votes
1answer
39 views

OpenGL ES 2.0 Shader creation fails

I have the problem in a program I am writing right now that shaders in correspondence to OpenGL ES 2.0 and EGL wont compile. Ive tried many things as of now. I have shrunk down the stuff to a small ...
1
vote
1answer
35 views

No event received when X11 client sets _NET_WM_STATE_DEMANDS_ATTENTION

I'm building a taskbar for an X11 desktop and so far I've been successful in detecting new and removed windows and changes to window titles and icons. However, despite setting every event mask I can ...
0
votes
1answer
38 views

Trigger Ubuntu session logout from my own script

I want to write a Python script to run in Ubuntu session that can under certain conditions logout the user - think screen time management for kids :) Can someone give me a pointer where to look, how ...
0
votes
0answers
21 views

How to program a window (with aspect ratio hint) to resize correctly on the Gnome desktop?

The window of a simple Xlib program with an aspect ratio hint does not resize properly with Gnome. When the resize causes the top of the window to go above the top of the Gnome desktop (or above the ...
1
vote
0answers
38 views

Monitor the actions of copy and paste in Linux [duplicate]

scenario: We often copy and paste texts or images when using Linux OS (like Ubuntu), such as copy texts from one editor to another one. questions: How to use higher level programming language, ...
0
votes
1answer
44 views

X11/GLX window above desktop

I want create opengl application for desktop, but icons and wallpaper are break down. Window should be under icons: code for create window: XSetWindowAttributes swa; swa.background_pixmap = ...
1
vote
1answer
68 views

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 ...
0
votes
1answer
62 views

How to render Unicode character in TCL/TK using X11 System

I am trying to render a unicode character to draw a scissor mark (✂) in TCL/TK I am using X11 API "void XwcDrawString(Display *display, Drawable d, XFontSet font_set, GC gc, int x, int y, wchar_t *...
0
votes
0answers
49 views

Moved to 62-bit Cygwin/X11 after 4 years, getting xterm & gvim errors

I just upgraded to the current 64-bit Cygwin and X11 from old 32-bit versions from 2015. I'm getting some X-windows errors. The shortcut that starts X11 runs the following: C:\cygwin64\bin\run.exe -...
-1
votes
1answer
27 views

Run Linux graphical program only on first login of the day

I want to set up my system to run Thunderbird (which needs x11) at the first login every day (so if I reboot on the same day, it wouldn't run). How do I go about setting this up? The easiest way to ...
1
vote
0answers
49 views

ggplot geom_boxplot rendering extremely slowly

I have a data.table with about 90000 rows, let's call it dtWeights. I'm trying to plot a boxplot with facets, something along the lines of: ggplot(dtWeights, aes(Day, Weight, group = Day)) + ...
0
votes
0answers
66 views

How to get an X11 socket connection between a docker container and the desktop

I wish to run Pycharm community within Docker on my desktop. I have created a Dockerfile (below) and seen it work fine on Mac. FROM debian:buster-slim ARG DEBIAN_FRONTEND=noninteractive RUN apt-get ...
0
votes
0answers
21 views

Is there a way to find the currently active window using Python without calling external programs?

I'm trying to improve a rich presence script I found that calls xdotool to get the currently active window and avoid calling external programs googling only gave me pywin32 and wnck as libraries to ...
0
votes
0answers
13 views

How can I prevent xinit from also starting a terminal?

For my Raspberry Pi dashboard I have set up a bash script to start chromium-browser in a X11 window. However, I can not figure out how to only start the chromium-browser without also starting a ...
0
votes
0answers
18 views

Sandboxing an X11 based application

I am trying to sandbox an X11 (Xquartz) based application which runs fine if not sandboxed. The X11-based binary is launched from a shell script stored in the bundle folder /Resources. The ...
0
votes
0answers
6 views

Is there a way to recored the time cost by X11 from pyqt graphicsview to x11 server?

I'm writing a PyQt4 program for benchmark the X11 performance. My purpose is to record the time cost by the process of drawing to the remote X11 server. The process is like below: No Time Operation 1....
0
votes
0answers
17 views

SDL_UpdateRects and not visible changes on xcb_get_image_reply

Application is using SDL 1.2.15 (cannot be upgraded) and draws itself using SDL_UpdateRects. After such paint it notifies another app which tries to get screenshot by xcb_get_image_reply. Problem is ...
0
votes
0answers
27 views

How to port QApplication::x11EventFilter to XCB QAbstractNativeEventFilter

I already posted a question in Qt forum (here: https://forum.qt.io/topic/101608/how-to-port-qapplication-x11eventfilter-to-xcb-qabstractnativeeventfilter) but without success yet, I post it here too ...
-1
votes
1answer
44 views

How to stop gl from hanging after several (7) frames?

Using OpenGL and X11, I have a program that updates an X11 window to create an animation, but the animation hangs after several frames. How do I fix this? I have tried glClear(GL_COLOR_BUFFER_BIT | ...
1
vote
0answers
32 views

Capture double click event in of the current window?

I'd like to know whether a user performed a double click in a certain application (specifically, evince). I wrote some code to check if evince is running and then whether it is focused application. ...
0
votes
0answers
26 views

GLFW Application tries to load driver via libGL even though it's linked against libGLESv2

I try to build a GLFW-based application for a rockchip-based board (Rock64 to be precise). The Rockchip implements OpenGL ES, but not standard OpenGL. Thus, I setup GLFW like this (this is Go; however ...
0
votes
0answers
45 views

compilation error with yoctoproject with opencv and x11

I'm developing distribution for raspberry pi 3 using yocto project. I want to make opencv and x11 plugins in this distribution. but I get the following error after "bitbake rpi-avg-image" command. How ...
0
votes
1answer
36 views

Cannot ungrab keyboard after XGrabKeyboard

I'm developing an app that should freeze all input, both keyboard and mouse, for a period of time. I've tried using XGrabKeyboard, but I cannot revert its effect using XUngrabKeyboard, it does nothing....
0
votes
0answers
23 views

Cannot install packages for R on linux after OS update

we recently received an update of our linux server. Prior to that everything worked very well and I could install packages in R without any problems. When I install a package, the following happens: ...
0
votes
0answers
23 views

How to create a monochrome rgba window with xlib

I would like to create a monochrome Pixmap in order to create a window with monochrome background color with XLib. According to documentation, the XSetWindowAttributes attr to pass to XCreateWindow ...
0
votes
1answer
18 views

How to use dbus in CentOS without Desktop Environment

My system is a centos with no gui. I have a server application which "listens" for a method call in a session dbus. It apparently works fine. I have pydbus and python3-gobject installed fine, I also ...
0
votes
1answer
33 views

How to show a gui view from a docker container within a docker-machine on OSX?

On my OSX, I can show a gui interface from a docker container successfully with Xqautz as the following command: docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -e DISPLAY=$DISPLAY --privileged -...
0
votes
1answer
41 views

How to XCreateWindow in the background?

I'm looking at improving developer experience when running graphics tests which spawn short-lived windows "like crazy". The windows need to be physically there, as otherwise data readback fails (i.e. ...