window-managers

How to manage separate GUI processes in a Qt application?

心不动则不痛 提交于 2021-02-11 12:23:38
问题 How would a Qt GUI application start separate GUI applications in different processes and managed their windows? Let's say I have a Qt application call myApp. The user is able to launch external application available on the OS from within myApp that run in their own separate process. I know about QProcess, but the difficult part that I haven't been able to figure out is managing the windows. myApp will need to have it's own title bars for windows and also be cross platform. If I launch an

How to manage separate GUI processes in a Qt application?

邮差的信 提交于 2021-02-11 12:18:10
问题 How would a Qt GUI application start separate GUI applications in different processes and managed their windows? Let's say I have a Qt application call myApp. The user is able to launch external application available on the OS from within myApp that run in their own separate process. I know about QProcess, but the difficult part that I haven't been able to figure out is managing the windows. myApp will need to have it's own title bars for windows and also be cross platform. If I launch an

RHEL w/Tkinter & Python3 - Changing the Activity name from “Tk”

点点圈 提交于 2020-05-30 12:30:56
问题 I'm trying to set the Activity (not sure of the proper term, see screenshot) name for a Tkinter app. I'm not a Linux expert, novice, or really even beginner, but the system about dialog lists my test machine as Fedora 30. Window Manager is Gnome. Code can't get much simpler: import tkinter as tk master=tk.Tk() master.title("My lil' Application") master.mainloop() This is most likely either a very simple or impossible thing to accomplish. I've not been able to come up with the magical search

RHEL w/Tkinter & Python3 - Changing the Activity name from “Tk”

*爱你&永不变心* 提交于 2020-05-30 12:30:31
问题 I'm trying to set the Activity (not sure of the proper term, see screenshot) name for a Tkinter app. I'm not a Linux expert, novice, or really even beginner, but the system about dialog lists my test machine as Fedora 30. Window Manager is Gnome. Code can't get much simpler: import tkinter as tk master=tk.Tk() master.title("My lil' Application") master.mainloop() This is most likely either a very simple or impossible thing to accomplish. I've not been able to come up with the magical search

Find the name of the X window manager

╄→尐↘猪︶ㄣ 提交于 2020-01-21 03:45:58
问题 How do I find the name of the running X window window manager from a program? If I start another window manager when one is already running, then an error occurs, so there must be a way for the other window manager to detect the first one. How does it work? 回答1: By the EWMH spec, a compliant window manager will set the _NET_SUPPORTING_WM_CHECK property on the root window to a window ID. If the _NET_SUPPORTING_WM_CHECK property exists and contains the ID of an existing window, then a ICCCM2.0

Is possible remove an overlay with WindowManager when press back or home button in android?

两盒软妹~` 提交于 2020-01-07 03:00:10
问题 I'm trying to find some answer to my question in the site but I don't found anything, and I'm not sure if is possible remove or hide the overlay with windowManager when press back or home button. This is that I have now. I put an overlay using accessibility service that cover all the screen when the user go to setting screen of my app. WindowManager show the overlay, but when I try to press back button or home button it doesn't work. Seems like is blocked. Only disappear the overlay when the

How do I get the username owning the currently active gui session?

蓝咒 提交于 2020-01-06 02:24:09
问题 I published some scripts to automatically mount and unmount disks in Linux, and now I got a request to make the disks owned by the currently logged in user. That is, the user currently holding the gui occupied (we don't care about terminal users in this case). How would I go about getting hold of the username? There could be a multitude of different window managers, so different solutions depending on wm might be needed, if no wm-independant solution exists. For a start, a solution just

How to get Window reference (CGWindow, NSWindow or WindowRef) from CGWindowID in Swift?

ε祈祈猫儿з 提交于 2020-01-04 05:34:08
问题 How to get Window reference (CGWindow, NSWindow or WindowRef) from CGWindowID in Swift on XCode 7.3 Mac Playground? I referenced from Apple's document - Window Manager Reference, and from the sample code SonofGrab, but I didn't find an answer in obj-C nor Swift. How should I do it? 回答1: This should work for NSWindow from CGWindowID NSWindow * ns_window; ns_window = [NSApp windowWithWindowNumber: windowNumber]; To get CGWindowID from NSWindow use CGWindowID window_id = (CGWindowID)[ns_window

Opening sockets to the Xserver directly

孤街醉人 提交于 2020-01-02 11:23:24
问题 I'm looking to understand how Linux Desktop Environments work with Xserver. I was reading that most window managers don't open sockets directly, instead they use either Xlib bindings for which ever language the WM is being written or you can use higher level bindings XCB; but i would like to know What are the advantages to opening a socket directly to the Xserver? 回答1: The question should rather be "What are the advantages of using Xlib instead of a graphical toolkit like gtk"? Even to master

Opening sockets to the Xserver directly

送分小仙女□ 提交于 2020-01-02 11:20:17
问题 I'm looking to understand how Linux Desktop Environments work with Xserver. I was reading that most window managers don't open sockets directly, instead they use either Xlib bindings for which ever language the WM is being written or you can use higher level bindings XCB; but i would like to know What are the advantages to opening a socket directly to the Xserver? 回答1: The question should rather be "What are the advantages of using Xlib instead of a graphical toolkit like gtk"? Even to master