I face the same issue. The magic trick is in the order of the keys.
You have to:
press and hold Ctrl
press and release Shift
release Ctrl
If you release the Ctrl before Shift, or use any other order, you will face the issue. Pressing those keys together at the same time makes the order random.
BTW. It doesn't depend on the WM at all. It seems to be Xephyr related.
This will wait 5 seconds and then get the active window ID. Run this command, click on Firefox, and wait for it to finish. Use that ID in the next step.
You can send keystrokes directly to specific window, by executing:
xdotool type --window [window ID] Hello World
Use the command man xdotool to get a full list of commands and functions!
Xdotool will generate key events and send them directly to window Firefox. But sending keystrokes to a specific window uses a different API than simply typing to the active window, and many applications just ignore them.
Best Answer
These keys are the "Super" modifiers.
You can emit an event for the left-hand one with
(use
Super_R
for the right-hand one)To maximize the current terminal on Ubuntu with Unity, run