x11

Octave-Gnuplot-AquaTerm error: set terminal aqua enhanced title “Figure 1”…unknown terminal type"

大憨熊 提交于 2019-12-17 08:02:30
问题 I've installed Octave and gnuplot via Homebrew, and downloaded AquaTerm.dmg. When I try to plot, I get the following message: octave:4> plot(x,y) gnuplot> set terminal aqua enhanced title "Figure 1" font "*,6" ^ `line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list` In a bash terminal set terminal , set Terminal , set term , (and the same, followed by "aqua" too) etc gives nothing. I've tried plotting again from octave having the "AquaTerm" already open, but nothing

Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

白昼怎懂夜的黑 提交于 2019-12-17 02:09:09
问题 I have box where I run tests. It seems like Jenkins would ssh in and execute commands described in the specific job that's running. Here I am trying to run my Selenium Webdriver tests, but it tells me that I have errors in launching firefox. The end idea is to run the webtests on this box entirely, and also take some screenshots of errors. I am using selenium-java-2.25.jar, firefox 10, linux OS. The funny thing is that I can ssh in manually into the box, temporarily copy the magic cookie from

Create GLX context in specific region of a window

帅比萌擦擦* 提交于 2019-12-14 02:31:22
问题 I would like to create an OpenGL context with GLX inside a window. However, I do not want it to span over the whole window region. Instead, it should only cover a subregion. For example, GLUT provides a function for this behaviour. Also major toolkits like GTK+ or QT provide GL widgets, which are only subregions of X windows. However I need to work low-level. glXMakeCurrent() accepts a X Drawable identifier. Is it possible to define a Drawable as being a subregion of a window? Or are there

X11 ConfigureNotify() always returning x,y = (0,0)

偶尔善良 提交于 2019-12-14 02:22:44
问题 I have an X11 window that was created using XCreateWindow with the parent set to DefaultRootWindow(dpy). The window receives ConfigureNotify events. However, no matter where the window is moved, the ConfigureNotify reports the position as 0,0. The same is true for calls to XGetWindowAttributes(). What's going on here? There's also something else that's driving me nuts. I'm telling CreateWindow to place the window at a particular coordinates. But it's anyone's guess where the window actually

How can I read the X11 clipboard from a JavaFX application?

强颜欢笑 提交于 2019-12-14 01:17:34
问题 I'm working on a JavaFX application and I would like to support pasting text via middle mouse button in an X11 environment. Is there a way to access the content of the X11 clipboard in Java/JavaFX? 回答1: To access X11 selection clipboard: Required imports: import sun.awt.X11.XClipboard; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.StringSelection; Code: XClipboard xClipboard = new XClipboard("Selection", "PRIMARY"); // Set value: xClipboard.setContents(new

Saving xlib XImage to PNG

大兔子大兔子 提交于 2019-12-14 01:04:42
问题 I am using xlib. I have an XImage structure filled with information from an XGetImage() call. Is there a popular method to get from XImage to something more meaningful.. namely PNG? I have looked at libpng, but have heard from pretty much everyone that it's a beast to tame. Would this still be the recommended path to take? 回答1: See also How to save XImage as bitmap? though that person had the constraint that they couldn't use a library. If you can use a library, Cairo is a good one that will

X11: will XGrabPointer prevent other apps from any mouse event?

半世苍凉 提交于 2019-12-13 19:26:15
问题 with following code: XGrabPointer(d, root, False, ButtonPressMask , GrabModeAsync, GrabModeAsync, None, None, CurrentTime); I just specify with button press event, but when running other applications can't get any other mouse event such as mouse move. Is it what this function designed to be? or with something I made wrong understanding. like parameter owner_events, I can't understand well. If owner_events is False, all generated pointer events are reported with respect to grab_window and are

problem with dead keys (acute, diaeresis, etc) c++

落花浮王杯 提交于 2019-12-13 16:00:55
问题 I'm currently writing my own virtual keyboard for linux using the X11 lib and i just can't find the way to simulate a KeyPress event of any dead keys. I'd tried , for example, to write "á" using the asigned macro, which is XK_aacute, and nothing happens. later i'd tried to send XK_acute (the acute accent macro) and then XK_a, and again, nothing happens :( In the KDE virtual Keyboard "Kvkbd" it's possible to do this, so i downloaded the source code, but it only supports the english keyboard

More meaningfull window title for Rstudio

假装没事ソ 提交于 2019-12-13 14:01:29
问题 I'm using R studio (Version 1.0.143) under Ubuntu (16.04) and the window title displays only a very uninformative "RStudio". I would like to have at least the name of the current tab or ideally the full path to the file corresponding to this tab. It seems that under Windows the full path appears in the window title. This might be useful for navigating between the windows but my main intended use is for softwares tracking the time spent in each software (like arbtt ). For the moment I can only

Xkb: How to increase the number of KeySyms in the client map of an XkbDescRec keyboard description?

时光怂恿深爱的人放手 提交于 2019-12-13 12:13:28
问题 I'm trying to programmatically modify some of the properties of my xkb keyboard mapping in X11. In the XkbClientMapRec struct map member of the XkbDescRec struct, we have the following members: typedef struct { /* Client Map */ unsigned char size_types; /* # occupied entries in types */ unsigned char num_types; /* # entries in types */ XkbKeyTypePtr types; /* vector of key types used by this keymap */ unsigned short size_syms; /* length of the syms array */ unsigned short num_syms; /* #