x11

How can I get X11 screen buffer (or how can I get X11 to write to /dev/fb0)

限于喜欢 提交于 2019-12-11 07:48:43
问题 I'm trying to get pixel data from my X11 instance, I've seen this thread (How do take a screenshot correctly with xlib?) and the double for loop is taking just too long for me (over a million loops, as the system I'm building requires the highest amount of efficiency possible, sitting around for 600 miliseconds is just not an option). Is there no way to just get a raw array of pixels to avoid the for loop? I know the XImage class has a "data" member which is supposed to contain all of the

Starting a Qt drag operation on X11 w/ OpenGL causes screen flicker

ぐ巨炮叔叔 提交于 2019-12-11 07:38:50
问题 I've got a Qt application running on X with -graphicssystem opengl as a command line arg. Whenever I start a drag and drop operation (via QDrag::exec() , using native cursors and no custom drag pixmap), the screen flashes briefly with vertical stripes of what seems to be garbage data from the display buffer. The application occupies the entirety of the touchscreen it displays on, and hence we aren't using a compositing window manager (though I get the same issue running from fluxbox). The

What could be making Jasper Reports to throw java.io.IOException reading font data?

爷,独闯天下 提交于 2019-12-11 07:38:04
问题 I'm running a process on a test environment that takes more than 10 hours to run and generates PDF documents using Jasper Reports v3.7.5. Quite frequently the process finishes successfully but in some cases the process fails throwing this exception: 20/05/2017 02:45:23.503 ERROR [process-pool-2-thread-20] net.sf.jasperreports.extensions.DefaultExtensionsRegistry - Error instantiating extensions registry for simple.font.families net.sf.jasperreports.engine.JRRuntimeException: java.io

XChangeProperty to change icon in unity bar and alt tab menu and window of running app?

别来无恙 提交于 2019-12-11 07:09:16
问题 For X11 systems I was trying to change the icon of the application during run time. This means that the window icon should change, the icon showed in alt+tab menu, and the icon in the unity bar. This is preview of ubuntu: ubuntu doesnt have a window icon, but other operating systems like metacity do. So I was thinking of using XChangeProperty like this: unsigned int buffer[] = {16, 16, 4294901760..............., 32, 32, 0............}; //ARGB 32bit packed array Display *d = XOpenDisplay(0);

Simple Linux/X11 programme to grab and keep the keyboard focus?

為{幸葍}努か 提交于 2019-12-11 06:48:11
问题 I am writing a simple typing break / anti-RSI programme on Linux (Ubuntu) in Python. I asked similar questions about locking the keyboard ( How do I 'lock the keyboard' to prevent any more keypresses being sent on X11/Linux/Gnome? and Releasing all keys after disabling the keyboard in X11/Linux using xinput? ) and someone suggested ( https://stackoverflow.com/a/10769704/161922 ) that grabbing the keyboard focus would be the best way. However I'm new to X11 programming. How would I do that in

Overlay Window in x11 keeps Flickering

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:19:26
问题 I adopted the code from this answer in order to draw an overlay window, which stays on top of all windows, always. But I find that this window keeps flickering whenever there is a keypress or a button click. I wanted to know if this can be stopped somehow. Increasing the time did not help me, as my terminal was frozen for few seconds when I increased time to 5000000000 The code was tested on Ubuntu 16.04 LTS . 回答1: I could not find a solution using the XComposite suite of functions. However,

“No X11 DISPLAY variable” - what does it mean?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 05:56:05
问题 I am trying to install a Java application on my Linux machine (Slackware). I have received the following error, and I do not understand it. Could you advise me how to approach the problem? Thank you. Here is what I get: (I see that some X11 DISPLAY variable needs to be set, but what value should I give it and how?) ~$ java -jar gate-5.0-beta1-build3048-installer.jar - ERROR - java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it

Stop keyboard becoming unresponsive on Pycharm startup

自古美人都是妖i 提交于 2019-12-11 05:55:49
问题 Symptoms: When starting Pycharm: the keyboard seems completely unresponsive the cursor disappears menu items with keyboard bindings are greyed out text selection still works with the mouse, but the cursor is not visible This may be related to another SO question "pycharm with ideavim occasionally makes the keyboard unresponsive" but ideavim is not involved. Set-up: remote desktop connection to a Windows 7 64-bit computer Windows machine has Xming running as a X-window server Using PuTTy to

Gtk+/X11: semitransparent windows with and without composite managers?

徘徊边缘 提交于 2019-12-11 04:58:19
问题 I need some code for making my window (and preferably all widgets on it) semitransparent. I know i can play around with gtk_window_set_opacity(), but it works only when composite manager is running, but what if not? I've googled a lot, found lots of code that mostly doesn't even compile, doesn't work or just a proof of concept. No fulfilling solution. I don't want to mess with X11 Xlib awful API (I just don't have time to learn it). Where to get such library/code snippet? 回答1: There's no good