Comments (2)
What in the world... that's very odd! I had a little chuckle at how weird this one is. Thank you for the video!
I can imagine ways this might happen, but ideally we can find a way to work around this behavior.
I haven't tried to reproduce or test this yet, but my first hypothesis is this: Maybe Firefox is doing something weird which makes keystrokes sent to the app (via --window flag) be processed by the most-recently-focused window? To test this, I think you could try getting to your scenario where key --window $RIGHT F5
incorrectly is handled by the $LEFT
window, and then click somewhere in the right window (so it becomes the most recently active before you switch back to your terminal), then try rerunning the same command attempting to send F5 to the right window. Can you report back on what happens? (Same broken behavior where $LEFT
receives F5 for some reason? or something else?)
from xdotool.
@jordansissel is likely correct in his hypothesis. I know from my own attempts at scripting Firefox browsers that everything (input/CLI commands, etc.) gets intercepted by a single backend firefox process that manages all windows. I've had issues with trying to open new tabs in a browser window from the shell command line -- doing so will always open a tab on the most-recently-focused browser window -- EVEN if that window is on a different desktop! So I strongly suspect Jordan is right about the xdotool key input getting routed to the most-recently-focused firefox window also.
Another case of "premature optimization is the root of all evil"! :)
from xdotool.
Related Issues (20)
- Impossible to chain "open thunderbird" + "resize window" HOT 2
- xdotool mousemove does not work on fc38
- Random mistake with type command
- Trouble getting xdo_click_window() function to work
- xdotool will not launch on Mint 21.2 Cinnamon
- xdotool key Alt+Tab on Ubuntu, not switch app window
- xdotool sets _NET_WM_NAME as a STRING when it needs to be set as UTF8_STRING
- Add various random timing capabilities
- [Feature] Ability to query and change desktop names
- [Feature] Search for windows that are unmapped or visible on all desktops HOT 1
- Latest xdotool version in Ubuntu 22 repos silently fails on Wayland :sob: apt can't upgrade it, and manual doesn't help HOT 2
- Segfault when running over an ssh connection
- set_desktop --relative does not work for -1 HOT 2
- xdotool cannot send key combinations to Qt-based applications HOT 5
- XGetInputFocus returned the focused window of 1. This is likely a bug in the X server. HOT 1
- Search not seeing Steam Input On-Screen Keyboard HOT 7
- The character ":" is typed as "Q" in VM window HOT 1
- Xdotool works in Firefox but not Brave HOT 1
- behave_screen_edge only works with certain open windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdotool.