x11

X11 forwarding affects Java Swing GUI dropdowns - Items not selectable, Menus collapse immediately

做~自己de王妃 提交于 2020-01-14 18:58:47
问题 Have a Java Swing app that is running on a Linux server and is being X displayed back via X11 forwarding. Cygwin is running on my workstation. Connection is made to the server using PuTTY with X11 forwarding and then ssh -XY . Application launches just fine, but certain GUI elements (mostly drop down menus) do not behave correctly. Some menus close immediately after they are opened (the blink open/close when clicked.) Others will not select / highlight items using the mouse. Others will

Selenium doesn't refresh page on Jenkins

妖精的绣舞 提交于 2020-01-13 14:54:09
问题 I have a test case that goes something like this: open homepage if there is no content present refresh page continue with other steps... This is the relevant part of the code: public JpoPO() { driver.get(Settings.JPO_TEST_URL); PageFactory.initElements(driver, this); System.out.println("[INFO] Homepage initialized."); zatvoriModal(); refreshIfNeeded(); zatvoriModal(); (new WebDriverWait(driver, 30)).until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("#loading"))); System.out

QWidget / X11: Prevent window from beeing activated/focussed by mouse clicks

一世执手 提交于 2020-01-13 10:54:10
问题 I would like to develop a system-wide onscreen keyboard in Qt/QML. Injecting key-events via xlib works fine. My problem now: If a keyboard-button is clicked, the window with the selected input field will lose the focus. In consequence, the key event will not be delivered to the previously selected input field. So does anybody know how to prevent a QWidget from beeing activated/focussed by mouse-clicks? Every hint is welcome and a code examples would be great! Thank you very much in advance,

QWidget / X11: Prevent window from beeing activated/focussed by mouse clicks

帅比萌擦擦* 提交于 2020-01-13 10:53:48
问题 I would like to develop a system-wide onscreen keyboard in Qt/QML. Injecting key-events via xlib works fine. My problem now: If a keyboard-button is clicked, the window with the selected input field will lose the focus. In consequence, the key event will not be delivered to the previously selected input field. So does anybody know how to prevent a QWidget from beeing activated/focussed by mouse-clicks? Every hint is welcome and a code examples would be great! Thank you very much in advance,

QWidget / X11: Prevent window from beeing activated/focussed by mouse clicks

谁都会走 提交于 2020-01-13 10:53:28
问题 I would like to develop a system-wide onscreen keyboard in Qt/QML. Injecting key-events via xlib works fine. My problem now: If a keyboard-button is clicked, the window with the selected input field will lose the focus. In consequence, the key event will not be delivered to the previously selected input field. So does anybody know how to prevent a QWidget from beeing activated/focussed by mouse-clicks? Every hint is welcome and a code examples would be great! Thank you very much in advance,

Drawing on the X root window

∥☆過路亽.° 提交于 2020-01-11 08:15:46
问题 I'd like to be able to draw on the root window in Linux. I.e. make an OSD. I'm using Gnome. Code samples or links to them would be appreciated. 回答1: It is possible, but you will not see anything in GNOME. Nautilus, GNOME's file manager, opens its own window on top of root X window to display icons. Because of that the root X window is fully covered... so there is no point in drawing on it. If you want to make OSD, either you should use a library like XOSD, or open your own X window and make

How can I make a window override-redirect with glutin?

浪子不回头ぞ 提交于 2020-01-07 04:28:11
问题 I'm creating a program that uses glutin, and I want to provide a command-line flag to make the window override-redirect so it can be used as a desktop wallpaper for certain window managers that don't support the desktop window type. I've done a lot of research and managed to cobble together a block of code that I thought would work, using the provided xlib display and window from glutin. Here is my existing code: unsafe { use glutin::os::unix::WindowExt; let x_connection = std::sync::Arc::

Animation issue on X11 window

元气小坏坏 提交于 2020-01-06 04:03:15
问题 I'm struggling to get X11 redrawing events right in a cross platform C++ application. Everything works great on Windows (I just issue some InvalidateRect calls when I need the window to redraw), but on Linux I keep having redrawing stuttering (probably when I send too many redraw events as follows) event.type = Expose; event.xexpose.window = window; XSendEvent(display, window, False, ExposureMask, &event); the same happens when I resize the window. This is the code I'm using void Window:

How to run a process and quit after the script is over?

会有一股神秘感。 提交于 2020-01-05 06:52:24
问题 I have asked a question how to run a clipboard clearing command from python, and I got a good answer for that: subprocess.run("xclip",stdin=subprocess.DEVNULL) subprocess.run(["xclip","-selection","clipboard"],input="") This seem to work in python, but there is a problem, it leaves the process open. Actually it opens 2 processes, one xclip and one with xclip -selection clipboard parameters. And it seems like they are zombie processes, they remain there indefinitely, until you copy-paste

XPending cycle is making CPU 100%

↘锁芯ラ 提交于 2020-01-03 19:06:10
问题 Good day! I have a little bit of troubles making a xlib project. Here is the structure of my project: [ Init ] [ Making some stuff ] [ Creating a timer thread (see code below) ] [ Main cycle (see code below) ] When the user presses any button, I set the flag in the thread to true-like value and it starts to send CustomMessage to the window every n time. while (warehouse.destroyflag != SML_DEAD) { if (XPending(warehouse.display)) { XNextEvent(warehouse.display, &event); But there is a bit of