Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getmouselocation doesn't modify window stack, why not? #118

Closed
alaricljs opened this issue May 10, 2016 · 4 comments · Fixed by #322
Closed

getmouselocation doesn't modify window stack, why not? #118

alaricljs opened this issue May 10, 2016 · 4 comments · Fixed by #322

Comments

@alaricljs
Copy link

I have a macro and I am trying to work around a Java bug with 'focus follows mouse' Basically The focus doesn't always follow the mouse. For the macro to work I am expecting the output to land on the window that is under the mouse so I tried getmouselocation but it doesn't modify the window stack for some reason. It returns the window ID, but that can't be used w/ search. Using the window id for send doesn't work either for your own noted reasons.

Can getmouselocation be made to set the window stack? On the other hand, why is it a random scattering of commands that can use a window id and not all of them?

@jordansissel
Copy link
Owner

Having getmouselocation set the window stack is a lovely idea!

On Tuesday, May 10, 2016, alaricljs notifications@github.com wrote:

I have a macro and I am trying to work around a Java bug with 'focus
follows mouse' Basically The focus doesn't always follow the mouse. For
the macro to work I am expecting the output to land on the window that is
under the mouse so I tried getmouselocation but it doesn't modify the
window stack for some reason. It returns the window ID, but that can't be
used w/ search. Using the window id for send doesn't work either for your
own noted reasons.

Can getmouselocation be made to set the window stack? On the other hand,
why is it a random scattering of commands that can use a window id and not
all of them?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#118

@emanuele6
Copy link

emanuele6 commented Dec 28, 2020

I would like this too.

Mainly to be able to use xdotool getmouselocation windowunmap windowmap.
Also, I expected this to work, but it didn't so, in my opinion, this is what one would expected.

@jordansissel
Copy link
Owner

Following up -- I ran into this today. For a workaround, I'm doing this until we have this command modify the windowstack:

eval "$(xdotool getmouselocation --shell)"

xdotool windowactivate $WINDOW

jordansissel added a commit that referenced this issue Feb 12, 2021
This allows you to do 'getmouselocation windowactivate' for example, to
activate the window the mouse is currently hovering over.

Add docs about getmouselocation updating the window stack.

Fixes #118
@jordansissel
Copy link
Owner

#322 addresses this.

jordansissel added a commit that referenced this issue Feb 13, 2021
This allows you to do 'getmouselocation windowactivate' for example, to
activate the window the mouse is currently hovering over.

Add docs about getmouselocation updating the window stack.

Fixes #118
buldi pushed a commit to buldi/xdotool that referenced this issue Apr 23, 2022
This allows you to do 'getmouselocation windowactivate' for example, to
activate the window the mouse is currently hovering over.

Add docs about getmouselocation updating the window stack.

Fixes jordansissel#118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants