Linux Eclipse 4.x popup window lost focus with unclutter - linux

With eclipse 4.x something differs with popup window focus handling.
It is about 50% chance to lost focus when type Ctrl-e ("Quick switch editor"), Ctrl-o ("Quick outline"), etc.
The problem was with "unclutter" app which hides mouse cursor when you not move your mouse.
Looks like it send pseudo EnterNotify event to the Eclipse when it hide mouse cursor.
So if start it like
unclutter -idle 2 -noevents
problem goes away.

The problem was the "unclutter" app which hides the mouse cursor when you not move your mouse. It looks like it sends a pseudo EnterNotify event to Eclipse when it hides the mouse cursor.
So if you start it like
unclutter -idle 2 -noevents
the problem goes away.
Other symptoms: A content assist popup opens and does not have the focus. Actually nothing seems to have the focus anymore. This consistently happens, if the popup opens over the place where the mouse cursor was before unclutter hid it. In my case the problem may have been even worse due to my use of focus-follows-mouse.
Another way to get rid of the problem: uninstall unclutter.

Related

Finding what window the user is focused on in Xfce

when I play osu! on Linux the option to "confine mouse cursor to osu! window" does not work. This means that my mouse cursor will move to my other monitor when I am playing. This is an issue because if I accidentaly click one of my mouse buttons it will tab me out of osu! and I will fail the map.
I wanted to make a python script to check if the user is focused on the osu! window, and if they are, it would confine the cursor to that window, but I have no idea how I would check what window the user is focused on.

Disable mouse hover event on Windows globally without blocking mousemove

I've made a Node/AutoHotKey script to control two computers with one mouse. I've made the cursor disappear on the first computer when using the second computer (https://www.autohotkey.com/boards/viewtopic.php?t=6167), but the mouseover event is still firing of course.
What I mean is simply if you hover over some icons on the desktop you will see tooltips, and so on.
I'm using a graphics tablet (absolute positioning), the cursor position gets captured and sent to the second computer.
I've found this method:
Found it here: https://www.autohotkey.com/boards/viewtopic.php?t=33128 (Also from the documentation: https://www.autohotkey.com/docs/commands/BlockInput.htm)
BlockInput, MouseMove ;to disable mouse interaction
BlockInPut, MouseMoveOff ;to enable mouse interaction
But it blocks mousemove completely, so that the cursor stops moving at all.
Is there any way to programmatically disable/enable mouseover (so that buttons don't change their color and tooltips don't appear, but AutoHotKey could still capture cursor position) event globally on Windows without blocking mousemove?

Sublime Text 3 - when I move the mouse left and right, editor window scrolls left and right

When using Sublime Text 3 - when I move the mouse left and right, editor window scrolls left and right instead of simply moving the mouse pointer where I want it to go.
This behavior only started after last reboot, and I did NOT update Sublime recently.
Windows 10 in VDI mode.
I don't observe that behavior in any other software I use.
If installed try removing the PlainTasks plugin. In my case this solved the issue. The latest update which came in via Package Control came with the unwanted feature to block the left mouse button in the editor window.
I think generally it's no mistake to check all the installed plugins when this issue occurs.

Dock logcat window on a side of Android Studio

I hope not to be off topic.
I consider Android's logcat window in Android Studio horribly annoying, even working with two monitors.
To open the logcat window, that often needs to be fairly big, my procedure is:
click below on "Android Monitor"
select the current running device (one time only)
click on that tiny and almost invisible icon on the extreme right
reduce again the Android Monitor that I don't need at all
most of the times resize and move the logcat window.
Whenever a change has to be written or something has to be seen on the emulator, the logcat window needs to be moved or closed, because it stands on top of every window, and this leads to perform that same sequence again after maybe few minutes.
Debugging using logcat becomes a pain, made of opening and closing that same window dozens of times.
I want that window to popup or dock automatically with one single icon click or with a key combination from the right, or the left, like for example "Android Model", without getting crazy every time. One click shows it, one click hides it.
Is it possible?

Android studio documentation popup

Is there a way when documentation popup on AS to not hide immediately after it is showed by moving mouse on some class. What I mean. I move mouse cursor above Activity class and documentation is popup is showed, but when I try to move mouse above this popup (because I have to scroll it) it disappears. I can hold ctrl and then is will not hide, but if I press on it while holdint ctrl down it will disappear (so I should move cursor above it, release ctrl and after that to start scrolling). So is there an option to change this behaviour to be like in eclipse - documentation pop up is showed and if you move mouse above it you can scroll, otherwise it is closed.
There are a lot of bugs surrounding this UI element. I'm currently having the opposite problem where it won't go away unless I manually close it. I suspect in your case, a timeout is triggering too early, or some other event is erroneously hiding the window.
This workaround may be helpful. You can explicitly pop the documentation window from the View > Tool Windows > Documentation menu option. This will cause the tool window tab to appear on the right gutter by default. Right-clicking on the Documentation tab will pop up a menu that will allow you to pin the window, or dock it permanently in the UI by disabling "Floating Mode" and optionally moving it to the other side or the bottom.

Resources