window-managers

Programmatically close a window made with `racket/gui` (to stop a `timer%`)

删除回忆录丶 提交于 2019-12-14 01:42:22
问题 Racket programs that use racket/gui run until all of the windows are closed. This makes it easy to write a program like: #lang racket/gui (define window (new frame% [label "Hello"] [width 100] [height 100])) (send window show #t) And now the program will continue to run until the window is closed. However, it sometimes makes sense to close a window programmatically, for example, if I want a countdown that will close the window and finish after the countdown is done. As far as I can tell

Creating an overlay activity

倾然丶 夕夏残阳落幕 提交于 2019-12-13 04:34:55
问题 I am trying to create a overlay activity which is sitting in a corner of the screen taking a very small portion of the screen, while the rest of the screen is interactive that is I tap on anything that is displaying on rest of the screen. So far I am unsuccessful in obtaining my goal. I have added these properties to my window but they don't seem to work. hello.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="50dp" android:layout_height=

OSX Quartz Event Taps: event types and how to edit events

好久不见. 提交于 2019-12-12 08:53:09
问题 Here's my code: #import <ApplicationServices/ApplicationServices.h> CGEventRef myCGEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) { printf("%u\n", (uint32_t)type); return event; } int main (int argc, const char * argv[]) { CFMachPortRef eventTap; CFRunLoopSourceRef runLoopSource; eventTap = CGEventTapCreate(kCGSessionEventTap, kCGHeadInsertEventTap, 0, kCGEventMaskForAllEvents, myCGEventCallback, NULL); runLoopSource = CFMachPortCreateRunLoopSource

AwesomeWM client created/removed callback

隐身守侯 提交于 2019-12-12 03:13:29
问题 I am using awesome WM and I want to run a lua function after a client is created/deleted. Specifically, I want to change the name of a tag to the name of one of the clients that are on the tag. I do this with a timer, but I think the best way to do this would be to register a callback function to awesomeWM that it will invoke when a client is created/removed. Are there some hooks/callbacks that I can implement to tell awesome to do this for me? --------------------------------------------

XLib windows auto-alignment performance

余生颓废 提交于 2019-12-12 00:42:57
问题 In XLib based application, I need to make the child window to be resized after the parent window. (For example, in order to make the child window to take the whole client area of the parent window) I am processing the ConfigureNotify event of the parent window and resizing the child window when needed. In generally it works properly. But there is a delay between resizing the parent window (for example when the user resizes the window dragging the edge) and the event received by the

Retrieve Ubuntu launcher icon

大兔子大兔子 提交于 2019-12-11 11:28:30
问题 Is there a way to retrieve application launcher icon. I tried xprop _NET_WM_ICON command but it returns with _NET_WM_ICON: Not found error. But I can see the icon in System Tray(Launcher). How can we retrieve that icon. Any other method ? 回答1: In Ubuntu/Unity it's defined in application .desktop file, not _NET_WM_ICON. See my related answer and desktop file specification You can associate your window with desktop file by setting _NET_WM_DESKTOP_FILE property 来源: https://stackoverflow.com

Android: how to add view to WindowManager, and keep it floating at the top of my app all the time?

六眼飞鱼酱① 提交于 2019-12-11 02:48:49
问题 I need a view to show up at the top of my application, and when it's shown, it can keep showing at the top of all my application's other view(all the fragment and activity). It sounds like a Floating Action Button, but will always show at the top of my app. I know I can do it via adding view to my phone's WindowManager, and hide it when I quit my app, show it again when I resume my app. This tricky method can work, but it also require some additional permission, which is I am trying to avoid.

Xlib ARGB Window Icon

丶灬走出姿态 提交于 2019-12-10 20:33:01
问题 I have a ARGB image data. I wish to set my window icon to this data. After searching for hours I am still at the start with nothing at hand. I know that I need to create a pixmap for image data and (may be) another pixmap for mask and use hints to hint the window manager about this. However, I do not know how to setup 32bit ARGB or 24bit RGB + 8bit alpha image. A sample would really be nice. 回答1: If 32 bit depth visual is available (check xdpyinfo) then code from my question should work for

Putting the power of vim into WMs: Modal Window Management? [closed]

回眸只為那壹抹淺笑 提交于 2019-12-10 12:58:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I'm a huge fan of Vim, and I largely adhere to the extremely efficient modal editing style. After some experience with Vim, I decided to get into other software that shared its philosophy on efficient/speedy keyboard usage. This naturally led me to tiling window managers, which allows one to efficiently manage

How do I stop/workaround Java apps stealing focus in Linux window managers

一笑奈何 提交于 2019-12-09 05:29:47
问题 We want to quickly prototype widgets in Java. We overlay them on top of a display written in a proprietary 3rd party graphics package. We find that the Java GUI steals keyboard focus away from the window manager. The window manager is fvwm, I've tried configuring it so the Java app is setup not to get focus, and furthermore if it ever does get focus to take it away and give it to the other GUI. If I run this with the Java app it doesn't work (whenever the mouse is over the Java GUI it has