x11

Why does X11 output “connect /tmp/.X11-unix/X1: No such file or directory”

a 夏天 提交于 2019-12-24 18:33:51
问题 I want to silently test whether X11 is working, from a script. I keep getting "connect /tmp/.X11-unix/X1: No such file or directory", even if I redirect stdout and stderr to /dev/null with (for example) xset q > /dev/null 2>&1 I strace'd, and it doesn't appear to be getting written by xset. I also strace'd the relevant sshd and it doesn't seem to be writing it either. xset, xdpyinfo and the test program at How to check if X server is running? all output this useless error message. In fact, so

Vulkan on X11: vkGetPhysicalDeviceSurfaceCapabilitiesKHR error

℡╲_俬逩灬. 提交于 2019-12-24 14:47:44
问题 I am trying to get Vulkan running under X11. I have (apparently) successfully created an instance, device and surface, and several calls relating to the surface also succeed, and even return reasonable values (for example vkGetPhysicalDeviceSurfaceFormatsKHR returns two formats). However, when I call vkGetPhysicalDeviceSurfaceCapabilitiesKHR , I get the following: X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 14 (X_GetGeometry)

Xlib: How to ask window manager for maximized window size?

℡╲_俬逩灬. 提交于 2019-12-24 14:04:36
问题 I want my program's window to be as big as possible without overlapping the window manager's various small windows e.g. the pager. Is there any way to ask the wm what the maximized window size is, before I create my window? 回答1: _NET_WORKAREA property of the root window is probably closest match. However on a multi-headed system it will give you the combined work area on all monitors. If that's what you want, fine (but see here on making a window span multiple monitors). If you want to

How do I keep track of related windows in X11?

ε祈祈猫儿з 提交于 2019-12-24 12:20:09
问题 Unfortunately, my question is not as simple as keeping track of two windows created by the same process. Here is what I have: Two users, Jack and Jim are remotely logged in to the same Unix system and run X servers Jack runs an application, 'AwesomeApp', that opens a GUI in a X window Jim runs another instance of this application, opening his own GUI window Now, Jack runs a supervisor application that will communicate with the process owning the first window (eg 'AwesomeApp') because it's HIS

example code for Xorg/X11 record extension fails

夙愿已清 提交于 2019-12-24 11:44:03
问题 I'm compiling a basic example (as much as using bare X could be simple...) using the X11 's RECORD extension on the latest version of Ubuntu, and I'm getting the following error: RECORD extension for local server is version is 1.13 X Error of failed request: XRecordBadContext Major opcode of failed request: 135 (RECORD) Minor opcode of failed request: 5 (XRecordEnableContext) Context in failed request: 0x17 Serial number of failed request: 10 Current serial number in output stream: 10 Any

java.lang.InternalError: Can't connect to X11 window server for JVisualVM profiling session

末鹿安然 提交于 2019-12-24 11:34:11
问题 I have an Ubuntu server VM ( myapp01 ) and have a Java application deployed there. The app has been acting wonky and I would like to profile it with JVisualVM. To do this I need to install X-Windows on my Windows 7 host, and then get the Ubuntu VM to export its X11 connection to my host when I tell it to run JVisualVM on the VM. So I started by downloading XMing here: http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download I used all default/recommended

Setting the default location for opening windows in an Xvfb environment

一笑奈何 提交于 2019-12-24 09:26:09
问题 This problem is driving me crazy. Maybe the experts at Stack Overflow can help. I want to open an application in Xvfb and to have it always positioned at x,y=0,0 (Top left corner). The application does not take any parameters, allowing it to reposition the opened window itself. Is there a way to set the default window position in a X-server? (Xvfb). Best regards Gustaf 回答1: I use Xvfb with twm (yum install twm). You need to create a ~/.twmrc file to indicate how windows are displayed. I just

How to output lowercase strings in AwesomeWM rc.lua?

て烟熏妆下的殇ゞ 提交于 2019-12-24 09:26:09
问题 I'm using AwesomeWM vicious datewidget. I'm trying to output the date and time in wibox, in my rc.lua, with this format Feb 17, 12:10 AM (%b %d, %l:%M:%p) but I want the AM (%p) to be lowercase. I've tried: vicious.register(datewidget, vicious.widgets.date, "<span font-family='terminus' color='#999999'>%b %d, %l:%M:</span> <span variant='smallcaps'%p</span>", 1) but the variant attribute doesn't seem to work. Is there another way to do this? my full rc.lua 回答1: You can use string library's

X11 layer manager

岁酱吖の 提交于 2019-12-24 08:24:58
问题 I have multiple applications each having a GUI from a different technology. I need to do this - 1. Create n layers, one for each application, onto which applications draw. 2. Have a layer manager which can perform operations on each of these layers (like re sizing, changing opacity etc. ) and then combine them to form a single layer. Can someone please give an idea as to how I should proceed with this? What APIs might help me into this ? I cant really figure out what should I be searching on

Unable to call member function pointer that is inside a struct

点点圈 提交于 2019-12-24 07:37:12
问题 I've been racking my brain over getting the syntax right on declaring, defining and finally calling a member function pointer inside my program. I'm writing a window manager with Xlib, and am trying to enable the user to define all key bindings in a vector of Keybind s. The Keybind struct contains more member variables, which I have left out here for the sake of brevity. Here's what I've got so far. Keybind , a struct containing a member variable, func , that points to a MyClass member