[solved] DWM: Focus and mouse pointer?

Hello, I just went from openbox to dwm.
I really enjoy this so far, but there are two things that I don't like.
Lets say I have two views (1 & 2) with this kind of window layout:
| | B |
| A |_______|
| | |
| | C |
|_______|_______|
Steps:
1. I'm in view 1 and my mouse is over A and it's focused
2. I switch to view 2 (MODKEY+2) and move mouse pointer over B
3. I switch back to view 1 (MODKEY+1) - The focus is still on A, even though my mouse pointer is over B
Is this normal? I would like to set it so that focus always follows my mouse pointer,
I would also like it so that when I move focus with MODKEY+j/k it would move my mouse pointer over that window.
Is there an option or a patch to do this?
I'm using dwm-6.0.
Last edited by z7 (2012-12-26 21:37:06)

Unia wrote:
There's one here, but it might require some modifications as it's made for 5.9:
I don't know about the other, sorry.
Thanks! This "wrap" patch actually showed me that my first problem wasn't really a problem for me.
Now the pointer moves always over the last focused window when I switch back to a view.
And yes it applied fine to dwm 6.0.
edit. But it kind of ruins switching views from statusbar with mouse, since the pointer always hops to the center of focused window. But I think I can live with it.
Last edited by z7 (2012-12-26 21:41:42)

Similar Messages

  • My Mac air book screen automatic change and automatic open different programs during my working it's move its self and I lost my work and mouse pointer automatic dance. Help me to solve

    My Mac air book screen automatic change and automatic open different programs during my working it's move its self and I lost my work and mouse pointer automatic dance. Help me to solve
    Any one can help me

    Thank you for your response - I'll give it a go.
    Also, just to update, my iMac cursor seems to glitch a little bit less now. It seems that at least ONE of my problems may have been caused by sitting my iPhone upon my WACOM tablet. The tablet must receive some sort of disruption from having my phone on it - and removing it seems to remedy a fraction of my mouse-jumping problems - if only for a meanwhile.
    The mouse cursor still does jump around on its own occasionally, and the other mouse problems do persist - so this must not be the only culprit for my array of problems.

  • DVD and mouse pointer stutter

    I recently experienced problems with playing DVDs AND my mouse pointer (trackpad). The DVDs are interrupted with subtle pauses, which make it ratehr unpleasant to watch a film. The mouse too is interrupted, stops in the flow and then jumps back on track. haven't experienced difficulties before, but I had recently installed a USB Modem (+software) to get online, but it never worked. I deinstalled, however, the "stutters" in DVD and mouse pointer persist. I ran Disk Repair - nothing noted. Any ideas?

    How did you solve this? I'm getting this on my mouse, my DVDs and, sometimes, on my downloaded video.
    I recently upgraded to QT 7.4.1. I've heard there are problems with that upgrade. Any ideas?

  • Spinning ball and mouse pointer icons look really low res!

    Why do the spinning ball and mouse pointer on my 24" look graphically low res?
    I know it's only a minot point but it kind of spoils the beautiful look of the screen.
    Tc

    Go to System Preferences/Universal Access/Mouse. Toward the bottom of the Mouse pane is the slider for the cursor size set to normal?

  • Focus on mouse pointer on click- WPF

    hi,
    I want to focus the position of the mouse pointer when the user clicks.
    Exactly like the focus we get on clicking the ctrl key to locate mouse pointer after enabling it here.
     Can anyone help me with this.
    Thanks,
    Shaleen
    TheHexLord

    Hi TheShaleen,
    >>I want to focus the position of the mouse pointer when the user clicks
    It's hard to accomplish your requirement, I've tried to find API to enable this setting, but as far as I know, there is no official API to enable this programmatically.
    If you just want to make this work on some control, like Canvas, you could get the coordinate of Mouse Pointer and draw shap on this Canvas, please refer to this article:
    http://msdn.microsoft.com/en-us/library/ms747393(v=vs.110).aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Rsd? shut down and mouse pointer problems

    hello there
    So, last week I went to the Carrefour Laval apple store to go check out my macbook because it had shut down 3 times in a row for no reason. The genius checked everthing out, ran some tests, and said everything was a-okay, that I might have simply just xperienced a random, insignificant crash. But, yesterday my computer shut down again as I was surfing the internet. I waited about 1 minute and powered it up again. everything seemed fine. so, about 1 hour ago, im checking my emails, when i go up to the toolbar to select a different website, when my mouse pointer seems to start disappearing on and off constantly. so i close my internet window and this weird loud and quick clicking sound comes from my computer. I open up another safari window, and the sound stops. and this happens over and over again as i open and close safari windows. then 10 minutes later, i am watching a dvd when my computer shuts down again! what is going on? Im so tired of this. i would like to have some advice before i go see the genius again. the thing is i cant reproduce the problem for him, it just happens randomly....
    please help me!

    Hi there I am having the same problem. I've been experiencing it often over the past month. First thing you should do is download the latest updates and make sure the firmware is updated which you can get from apple.ca/support. If that doesn't work then take it into a certified repari center that is authorized by Mac. In Toronto I go to CPUsed, Carbon or MacLibrary for repairs. My macbook is still under warranty so I am going to take it in. I am also going to extend my warranty for three years. These intels are great but it is the first year so expect problems.
    Cheers!
    Alan

  • SOLVED Key board and mouse fail after last update

    Both my wireless keyboard and mouse failed after I updated yesterday. I'm using KNOPPIX to post they both work with knoppix so its not a hardware problem.
    KDE 4.1
    Logitech keyboard and mouse
    Last edited by normc (2008-11-08 00:05:37)

    Thanks a lot
    Just want to add that I had to edit grub at start up and add "single" at the end of the kernel line.
    The reason is that switching to runlevel 3 didn't work for me.

  • All of a sudden my track pad doesn't work properly and mouse pointer is jumping all over my screen

    Help, it feels like someone else is controlling my mouse.  This just started happening.  My trackpad doesn't work or works sporadically.  While typing the pointer is scrolling all over my screen.  This is really annoying.

    Great tip! Your suggestion to check for a swollen battery in my laptop is working for me. You should get credit for solving the problem.
    On my MacBook Pro (2008), my cursor was out-of-control for the past couple of days, like it was having a sissy-fit. In TextEdit, for example, I would enter text, but the text would no longer be entered smoothly, in sync with my typing. Nor would the text appear where I wanted it go. Sometimes, the text I was typing, say in the last line of the document, would jump and insert itself somewhere above in the document. Sometimes, entire lines of text, or entire paragraphs, would get highlighted and then immediately deleted upon my hitting the next keystroke. Not an acceptable way to work!
    I tested this odd behavior in Leopard and in Snow Leopard and in Lion, which are all partitioned on my laptop's hard drive. Since I could not isolate the problem to any one version of the Mac OS, I began to fear that my motherboard had gotten compromised and went defective on me.
    Your tip proved that it was merely a swollen battery that was the cause of my problems. I was able to confirm this by removing the original battery (now 4 years old) and placing it on a hard surface. It rocked like a see-saw, ever so slightly, about 1/8-inch to 1/4-inch at the far sides of the rocking motion. When I looked at that original, swollen battery from the side, I got further indication that your insight was likely correct, for I could spy the area where the swelling was occurring: it was at an edge in the middle of the battery, and it was separating from the base by about 1/16-inch, just enough to make me wonder why the "springiness" had suddenly disappeared from the central portion of my trackpad.
    That change in the touch and the lack of aural feedback (i.e. no "click" sound or feeling) when I depressed the trackpad in the central section, was my first clue that something was wrong. The crazy cursor behavior on-screen was further indication that something was amiss.
    I type this reply under A/C power, as the replacement battery, which I had purchased from Other World Computing back in September 2011 for just such an eventuality, is now charging. At first, I was worried that the replacement battery was a dud, for it was stuck on 0% for nearly 10-15 minutes before it began to take a charge. But, 30 minutes of paience has paid off: the replacement battery is now at 15% and getting more powerful by the minute.
    bowlerboy

  • [SOLVED] Compiz-Fusion and mouse pointers

    Hello,
    I am having a bit of trouble using Gnome with Compiz-Fusion and trying to use the Vienna 3 Rapture mouse theme, or any non-default theme for that matter. Said theme worked fine for me in Fluxbox, but since I started using Gnome/Compiz it isn't working right.
    I have my TV as a dual monitor, and the Vienna pointer works fine on it. On my main monitor though I get the standard black cursor. I can change it to red or white glass, but I can't get Vienna or any other cursor to appear on the list of pointers to change too. My mouse does switch to Vienna in Google Earth, but that's the only app I've seen so far that it works in.
    Sometimes when I start X the Vienna cursor will appear for a moment before being overridden and sometimes it goes straight from the 'X' pointer to the default Gnome pointer. Perhaps on those occasions it just happens to fast for me to see.
    I found a tip on a forum (that I can't find now to link to unfortunately....) that mentioned adding 'xsetrroot -cursor_name something something' (sorry I can't remember the exact command) to ~/.xinitrc before gnome-session. That didn't help at all. One thing I wasn't sure of though is whether to actually type '-cursor_name' or whether I should type the name of my cursor. I know that sounds stupid but the tip on the forum said to type it EXACTLY as shown. Generally they make a note of saying 'use your real path instead' or something of the like. 
    I have my mouse themes, several of them, not just this one, and all of which worked in Fluxbox, setting in ~/.icons but they don't show up in the list of cursors available. My Vienna cursor is still set apparently since it works on the TV, which is of course running Gnome/Compiz also.
    Does anyone have any ideas as to what I might be doing wrong here? Thanks for any advice.
    Last edited by The Avatar of Time (2009-05-24 04:58:53)

    While I haven't figured this out yet, oddly enough after a restart (which I have done before) the cursor is 'kind of' working. It shows on the desktop and on the window borders, but not IN apps like Firefox or Pidgin.
    It does however still work in Oxine. So I'm at a loss as to what's wrong and why it suddenly started partially working. Any ideas any one?
    ***I also noticed that the cursor is working in the 'Appearance' window, as well as some other config windows like the one for avant window navigator. It works in 'calculator' on the buttons, but if I were to hover over the display then it reverts to the default cursor.
    Last edited by The Avatar of Time (2008-12-10 03:09:13)

  • [SOLVED] dwm tiling and monocle not work in virtualbox arch

    I installed arch in virtualbox on my office windows computer.
    I installed dwm from abs and configured by recompiling using config.h like this below:
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { " A ", " R ", " C ", " H " };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { NULL, NULL, NULL, 0, True, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = False; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "lxterminal", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    now, I can switch tiling to monocle and monocle to tiling.
    but windows appears as floating or not tiling in tiling mod.
    Last edited by mshan (2015-03-09 06:16:31)

    Yes, I can switch, this means I can hit Alt+space or click on layout symbols:
    [ ]=
    and
    [2]
    the symbols toggle.
    but windows don't change their layout from tiling to monocle or monocle to tiling.
    they just open as floating. For example: my Lxterminal appears as in openbox except window title bar.
    sorry for my english.

  • I've upgraded from snow leopard to mountain lion and now my screen resolution and mouse pointer are messed up.  My dock doesn't show up on the screen and the login is half off the screen on the right.  Only seeing the top left quadrant screen.

    I have already tried changing the resolution in system preferences. It didn't do anything.

    Please confirm what Mac this is - this is the iMac (Intel) community, but your profile says Mac Pro.
    If the latter, provide some info about the monitor.

  • Fluttering top 20% of screen and bad mouse pointer.

    I just opened the box of a Pavilion p6-2378, and connected to a monitor (trying both VGA and DVI modes separately). Top 20% of screen keeps fluttering, and mouse pointer is a large black box and difficult to follow. Video card diagnostics dreport no problem.What else can I try before returining the product?

    Hello tarti,
    That sounds like a strange issue. So putting a second monitor and different cable on the same result. It may be the port on the computer that is the problem.
    Your computer has both VGA and DVI ports, have you tried both?
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Lost keypresses and mouse clicks:  Hardware problem?

    I recently bought an Intel MBP, and I've been noticing strange behaviors with regard to keypresses and mouse (touchpad) clicks getting lost sometimes. The problems I'm having are hard to reproduce intentionally, but I can hear the keypresses and mouse button clicks when I do them, yet nothing happens. While it's possible, that I sometimes am hitting the wrong key, I have been paying closer attention lately to this problem, and of course, the mouse button kinda hard to hit incorrectly. Here are some examples of weird things I encounter:
    If I click in a text field in Safari, sometimes the first keypress (and only the first) will get lost.
    Sometimes, the first keypress I type right after clicking gets lost. For instance, just now, I noticed a typo in the above sentence, so I clicked on the character and hit the Delete key. The cursor was in the right place, but the delete didn't happen. I had to press the key again.
    Sometimes, even when the window for sure has focus and the pointer is squarely pointing to a link, the first click on the link won't take. I have to click it again. Since Safari doesn't have adequate feedback for when you click something, that can get particularly frustrating. Similar things happen with buttons in applications or on the title bar.
    If I'm using an X11 app, and I copy/paste with the clipboard, the touchpad won't respond to movement for 2 or 3 seconds afterward. This is particularly visible with "nedit". I don't think this is an "ignore accidental touchpad input" issue, because this only happens with clipboard actions; other keys don't have this effect. I haven't noticed this with native apps.
    However, I have noticed in X11 and native apps, sometimes, Ctrl/Cmd-C and Ctrl/Cmd-V will be ignored. They're never ignored if I selected the text using the keyboard (shift+arrows), but if I select the text with the mouse and then use the shortcut to copy, the copy/paste sometimes doesn't happen.
    I have noticed that if I am more deliberate about clicks (make sure to hold the button down longer), the probability of losing the event SEEMS to be reduced, but not eliminated. Is there a debounce circuit involved that's causing me trouble?
    This kind of loss of input is unusual to me. I have a number of Windows and Linux PCs, and I've never experienced this sort of thing. I've also used a few Macs at school before I got this one and didn't notice anything weird.
    Can anyone shed some light on this for me? It would seem odd that I should have to modify my keyboard/mouse using behavior when switching to the Mac. If the problem is hardware, how can I prove it? (Perhaps I could boot Knoppix from a CD and mess around a bit.) If the problem is software, is this a case of MacOS trying to second-guess user input?
    Thanks!

    Theosib,
    Apple regularly monitors these boards, but you may never see a response from Apple directly. Assume this is a user to user forum. If you are having a problem with the computer and need a response from Apple call 1-800-APLCARE and speak to customer relations at that office if the technician is not able to satisfy your needs.
    Your problem while not unheard of, is more uncommon than the boards may make you believe.
    Remember, Spotlight is constantly indexing. If your hard drive is overfull, it may take longer for Spotlight to index, thus cause a multitasking delay. If you have many Dashboard widgets, they may all be trying to access the net for updates at once, and again, a delay might happen. I've written a FAQ* about several other factors which may affect Mac OS X speed, which could in theory also affect keyboard input:
    http://www.macmaps.com/Macosxspeed.html
    And of course, you should always check Apple menu -> System Preferences -> Keyboard and Mouse to make sure your input settings are the ones most comfortable for you when using the keyboard. It is possible a repeat rate could cause a delay.
    Edit: I attempted to answer another of your questions here recently with an update:
    http://discussions.apple.com/click.jspa?searchID=-1&messageID=3988468
    Please take a look and see if it answers your question.
    * Links to my FAQs may give me some compensation.

  • IPhoto text field input focus requires mouse hover

    This is driving me crazy. To add text to a photo title or description, the mouse must not just click in the text box -- it must stay there! If the mouse drifts away after the click or you bump the mouse while typing, text input stops. This is seems peculiar and turns out to be quite frustrating. This reminds me of the old days when there was a debate over window focus and mouse movement.
    Once you click into a text field, that field should stay active until you do something intentional to leave it (tab, enter, click, etc.).

    I'm having the same problem as you with dealing with text. After some hours of trying all kinds of clicking around and holding down extra keys (the arrow keys help a bit), I'm getting nowhere. I was automatically upgraded to 9.1.1 when I got my new MacBookPro. I was previously on an older version of iPhoto. The description pane in the older version was bigger and much simpler to use (there is spare space on the iPhoto 9.1.1 screen layout, so why did Apple make its description panel so small?). Version 9.1.1 has more editing options, but I haven't yet found a way of using most of them because as you say, it's so difficult to keep selected text active for editing.
    I have also tried drafting my descriptions inside Word first and then pasting them into iPhoto. They paste OK but the pasted text is black (as in Word) - but against the near-black of the iPhoto description pane, it's almost invisible! I thought I could then change the pasted text colour in iPhoto to white (on black) by using 'colours' from inside the description-editing options of iPhoto, but for the above reasons, I can't find any way of doing that.
    There seems to be no direct help for these problems in iPhoto Help. Has anyone out there worked out what the select-and-edit routines should be? If not, I just hope Apple will solve these things in the next upgrade, or at the very least give us a bigger text pane.
    Message was edited by: digidaze

  • Mouse pointer stutter as well as DVD pauses

    I recently experienced problems with playing DVDs AND my mouse pointer (trackpad). The DVDs are interrupted with subtle pauses, which makes it rather unpleasant to watch a film. The mouse too is interrupted, stops in the flow and then jumps back on track. I haven't experienced difficulties before, but I had recently installed a USB Modem (+software) to get online, which never worked. I deinstalled, however, the "stutters" in DVD and mouse pointer persist. I ran Disk Repair - nothing noted. Any ideas?

    OnyX is a utility that runs OS X maintenance scripts. Perhaps that would help: http://www.titanium.free.fr/pgs2/english/onyx_tiger.html

Maybe you are looking for

  • Two devices, one apple id account, want to restore only one and sell

    When I upgraded from my iPhone 4 to my 4s, I activated it using the most recent backup file from my previous device. My old phone no longer has a carrier service, but is still recognized in itunes in respect to my apple id. I now want to sell the iPh

  • Is there any way to create a setup file Like Visual Basic

    Hi, I want to create a setup file of all developed foms and reports to install them to desireable location, is there any way to create a setup file in oracle, Like Vb. Raza

  • Lost all my apps after I did a system restore on my replacement I phone 4

    Hi, I got my I phone stolen and got a replacement phone, I did a system restore and everything came over except for all my apps.  What can I do?  Yes I did back up my phone prior to it being stolen.  I did remember seeing all my apps on my itunes at

  • Payment terms / Due date Schedule

    Dear experts, how do the Payment terms definen in FI - FICA, relate to the Due Date Schedule used in Student Lifecycle Management?. Do I define Payment terms for the contract account, or just the Due Date Schedule? Best regards.

  • Crystal Report Database Query

    Hi I would like to ask regarding queries from the database. I have 2 main tables that gets their images from 1 master table. First is TASK table and Second is ASSET table. Both tables are relational. Each Task has Asset connected by Task_Asset_ID. Bu