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,xlib,window-managers
Grab the mouse pointer and pass on the events to the destination window.
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
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...
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...
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; } ...
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...
As discussed with you on IRC, click events were introduced in i3wm v4.6, just upgrade i3 :)
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. ...
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,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...