Menu
  • HOME
  • TAGS

Cannot Remove View From WindowManager - Multiple Threads

android,multithreading,scheduledexecutorservice,window-managers

Most View methods should be executed only from the main (UI) thread. Activity.runOnUiThread() is your friend here. Another option is to initialize a Handler in the UI thread, then keep it available to post() Runnables from each scheduled event. For example: public class MyService extends Service { private Handler mUiHandler;...

linux x11 window manager - blocking mouse events

linux,x11,xlib,window-managers

Grab the mouse pointer and pass on the events to the destination window.

Detect external window update

window,gtk,x11,detect,window-managers

With X11 you need to use Damage extension - DamageCreate / DamageSubtract requests and DamageNotify event. Not sure about gtk api ( Ideally there should be wrapper around X11/Damage and win32 but not sure if it exist ) - try to look at damage-event

cwm window manager - extend “exec program” search path with custom directories

window-managers,openbsd

I just tested it and it works fine for me, although I use ksh and not zsh but that shouldn't matter. A few things to look out for: your script has to be executable setting the PATH manually in an xterm while already running cwm won't work, because export only...

What is 'client side decoration'?

user-interface,gtk,window-managers

Traditionally, the GUI application would be responsible for the contents of its window, but not the title bar, close buttons, borders, resize grips, etc. Those would all be added by the window manager, and are called decorations. (Examples of window managers are TWM, Fluxbox, Metacity, Mutter, etc.) This is a...

XCB - How to set WM_SIZE_HINTS?

resize,window,x11,window-managers,xcb

Here is the solution: #include <xcb/xcb.h> #include <xcb/xcb_icccm.h> #define WIDTH 900 #define HEIGHT 600 int main(){ //... //Connect to X Server and //Create a window //... xcb_size_hints_t hints; xcb_icccm_size_hints_set_min_size(&hints, WIDTH, HEIGHT); xcb_icccm_size_hints_set_max_size(&hints, WIDTH, HEIGHT); xcb_icccm_set_wm_size_hints(connection, window, XCB_ATOM_WM_NORMAL_HINTS, &hints); return 0; } ...

Xmonad, how to bind a key to running a shell script?

linux,bash,shell,window-managers,xmonad

Use xev to determine the keysym of your F1-key, which is on my system 0xffbe, and add myKeys = [ ((0, 0xffbe), spawn "/path/to/x.sh") ] to your xmonad.hs. As described in XMonad.Util.EZConfig, use `additionalKeys` myKeys in your main function, and recompile+restart. Probably it also works with additionalKeysP and <F1>, but...

Get py3status/i3status to allow clicks

python,window-managers,i3

As discussed with you on IRC, click events were introduced in i3wm v4.6, just upgrade i3 :)

How to run a java GUI at startup in IceWM?

java,linux,window-managers

At last I found the solution! Apparently it was the sudo that was making problem.. So I referenced /path/to/java/binaries into /etc/sudoers/ file and started java file from /home/loggeduser/.profile (I did this because there is only one user to my system) and done..rebooted and I have the Java GUI running. ...

Animation of imageView in WindowManager does not work in android 4.xx

android,android-animation,window-managers

Putting ImageView inside LinearLayout fixed the problem of the imageView not being animated. Here is the code: public class SellFloatingBubbleService extends Service { public static final int ANIMATION_DURATION = 500; private WindowManager windowManager; private ImageView imageView; private int animationDistance; private LinearLayout layout; private static SellFloatingBubbleService instance = null; public static...

android add ListView to windowmanager, can not remove the last item

android,listview,window-managers

here you are creating new listview every time, lv = new ListView(context); if (messageNumber == 0) { lv.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); lv.requestLayout(); lv.setBackgroundColor(Color.BLACK); data.add(messageNumber + " <(^OO^)>"); adapter = new NotifyView(context, data); lv.setAdapter(adapter); } else { data.add(messageNumber + " <(^OO^)>"); adapter.notifyDataSetChanged(); } change to this: if (messageNumber == 0) { lv...