x11

How to prevent an X Window from receiving user input?

淺唱寂寞╮ 提交于 2019-12-02 03:44:10
问题 I would like to create some windows on a linux desktop for simple layout purposes. I need to avoid user input going to these windows (and I suppose avoiding the windows from gaining focus should suffice for that to happen). I think that I can do this with the xprop command, by setting the WM_HINTS property, but I haven't found specific documentation on how to do it. By the way, for an mplayer window, I can do this by using the option -input nodefault-bindings:conf=/dev/null . I simply need a

Compiler does not see QX11Info

允我心安 提交于 2019-12-02 03:37:17
问题 I've created a little class to set some global shortcuts. But now, when i compile my app i see many errors: In file included from ../src/GlobalShortcut/globalshortcut_linux.h:7:0, from moc_globalshortcut_linux.cpp:9: ../../../QtStable/5.4/gcc_64/include/QtWidgets/qstyleoption.h:117:9: error: expected identifier before numeric constant None = 0x00, ^ ../../../QtStable/5.4/gcc_64/include/QtWidgets/qstyleoption.h:117:9: error: expected '}' before numeric constant ../../../QtStable/5.4/gcc_64

Launching an X application from a locally running Apache web server using PHP

半世苍凉 提交于 2019-12-02 02:39:56
问题 I have Apache and PHP running on my local Linux desktop. My PHP script launches "xcalc", and looks like this: <?php shell_exec("xcalc"); ?> When I execute the PHP script using the PHP binary, I see xcalc running on the desktop. When I execute the same script through Apache, I see nothing happening on the screen. I can't figure out where it fails. I changed Apache's User and Group to a regular user, just to make sure that all X settings are correct. 回答1: xcalc needs either a -display option or

Is there a way to change ConfigureNotify event frequency in X11?

与世无争的帅哥 提交于 2019-12-02 02:19:57
I've got a little graphical program that uses ConfigureNotify events to detect window resizing and to redraw the application. However, the resize events seem to come in somewhat slowly when dragging the window to resize, which causes the redraw to be jerky. Is there a way to configure this event rate? Barring that, is there a way to detect the start/end of a resize so I can defer redrawing until the final size has been reached? No, it is not possible to configure the event rate; they just come in as the X server sees fit. However, part of the jerkiness may be precisely because you are updating

Is there a way to change ConfigureNotify event frequency in X11?

我的梦境 提交于 2019-12-02 02:03:37
问题 I've got a little graphical program that uses ConfigureNotify events to detect window resizing and to redraw the application. However, the resize events seem to come in somewhat slowly when dragging the window to resize, which causes the redraw to be jerky. Is there a way to configure this event rate? Barring that, is there a way to detect the start/end of a resize so I can defer redrawing until the final size has been reached? 回答1: No, it is not possible to configure the event rate; they

How to prevent an X Window from receiving user input?

元气小坏坏 提交于 2019-12-02 01:52:24
I would like to create some windows on a linux desktop for simple layout purposes. I need to avoid user input going to these windows (and I suppose avoiding the windows from gaining focus should suffice for that to happen). I think that I can do this with the xprop command, by setting the WM_HINTS property, but I haven't found specific documentation on how to do it. By the way, for an mplayer window, I can do this by using the option -input nodefault-bindings:conf=/dev/null . I simply need a general solution which I can enforce at a low level on any application's window. Thanks! A window

how to define window stacking order?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 00:36:48
I'm trying to write my own window manager. One issue I faced is that I don't understand how to define in which order windows should be displayed. The only means I found is to use xcb_configure_window . But it looks very limited to me: it only allows either to rise the window on top of all, or put it to the very bottom (no notion of layers or something). What a limited functionality :(. What I really would like to do is to define the window order and tell X about it. Or to define multiple layers of windows (e.g, normal, above all, below all). So I could rise (or lower) the window with respect

Fatal IO error 0 (Success) on X server

守給你的承諾、 提交于 2019-12-01 19:02:46
问题 What does the error "Fatal IO error 0 (Success) on X server" mean? The error is produced when an X client tries to call XvCreateImage(), and it results in the client terminating. X.0.log shows the following version information: X.Org X Server 1.6.4 Release Date: 2009-9-27 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.24-23-server i686 Ubuntu Current Operating System: Linux ori-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 Kernel command line:

How to map a X11 KeySym to a Unicode character?

半腔热情 提交于 2019-12-01 18:20:26
This is an exact duplicate of this question ; however the code linked in the accepted answer is nearly 11 years old, and this comment in the code leads to my duplicate question: The keysym -> UTF-8 conversion will hopefully one day be provided by Xlib via XmbLookupString() and should ideally not have to be done in X applications. But we are not there yet. Are we there yet? I'm aware of XwcLookupString , but something like... wchar_t unicode = XKeySymToWideChar( keysym ); ... would be much simpler and logical, and not require updating whenever KeySyms are added or changed. Is there a simple

How to map a X11 KeySym to a Unicode character?

冷暖自知 提交于 2019-12-01 17:49:44
问题 This is an exact duplicate of this question; however the code linked in the accepted answer is nearly 11 years old, and this comment in the code leads to my duplicate question: The keysym -> UTF-8 conversion will hopefully one day be provided by Xlib via XmbLookupString() and should ideally not have to be done in X applications. But we are not there yet. Are we there yet? I'm aware of XwcLookupString , but something like... wchar_t unicode = XKeySymToWideChar( keysym ); ... would be much