x11

Docker with shared X11 socket: Why can it “start” Firefox outside of the container?

£可爱£侵袭症+ 提交于 2020-08-27 06:41:30
问题 I have the following scenario: I set up a Docker container with access to the X11 socket, essentially I did this: https://stackoverflow.com/a/25334301 Then I installed Firefox within the container and started it using the "firefox" command in bash. What I noticed: If Firefox was already running on my host machine when I started it in the container, it essentially "escaped" the container as it just opened a new window of the host instance of Firefox. It therefore had access to everything on

Docker with shared X11 socket: Why can it “start” Firefox outside of the container?

≡放荡痞女 提交于 2020-08-27 06:41:14
问题 I have the following scenario: I set up a Docker container with access to the X11 socket, essentially I did this: https://stackoverflow.com/a/25334301 Then I installed Firefox within the container and started it using the "firefox" command in bash. What I noticed: If Firefox was already running on my host machine when I started it in the container, it essentially "escaped" the container as it just opened a new window of the host instance of Firefox. It therefore had access to everything on

Cygwin gitk issue

China☆狼群 提交于 2020-07-17 00:27:34
问题 I have recently installed all of the X11 packages in the cygwin setup and now have is massive annoying error with not being able to see gitk. Everything was working perfectly well until I installed this stuff. Before I had this issue I didn't really note done any of the configuration I merely started xwinserver went to my branch and typed gitk and everything appeared. Now I have to put in my display as it claims the display is not set. I export my display settings check that it is set

Multithreaded X11 application and OpenGL

别等时光非礼了梦想. 提交于 2020-07-15 03:15:41
问题 I'm trying to create a multithreaded opengl application with libx11 - with one separate thread per window, and one manager thread. I have an event loop in the manager thread: while(true) while(XQLength(mPlatformData->display)){ XNextEvent(mPlatformData->display, &event); std::cout << "event" << std::endl; } } This is a great event loop for single threaded applications, but with this multithreaded setup strange things happen. When I'm creating a window, I need to disable the event queue, or

How to unfocus (blur) Python-gi GTK+3 window on Linux

☆樱花仙子☆ 提交于 2020-07-06 10:40:29
问题 What I want to do and why I want my window to unfocus, so the previous focused window is selected. Why? I want to interact with the previously selected window (from other programs). My current plan is: unfocus my window, use libxdo to simulate keystrokes, then focus my window again. My window can be set on top to help avoid flicking. Should be good enough. Looks simple to me. But I can't get it to work. What I've tried so far Hiding the window with Gtk.Widget.hide() and then showing it again: