The PyGTK window is always on top of all the "always on top" windows

I created a PyGTK application that should always be on top. The transparent window redirects the mouse clicks to the window below and therefore goes out of focus when you click the button in the sublayer. This is the intended behavior. In fact, it should just show a small image, which is always above all.

This works well if you are not using something like the full screen view of libreoffice. The presentation window is also marked as always on top , and therefore my window goes into the background. Even if I take it to the foreground using Alt+Tab , and then click on the bottom layer of the libreoffice slide (which is necessary), my window again falls into the background.

This is a really specific question, and the solution should work on both Linux and Windows. I have no idea what to do. I just found many questions about how to always have windows on top, but none of them cover my problem.

In short: How can I put my window always on top of every window that is always on top?

+5
source share
1 answer

The simple answer is: You can use Always On in windows with AutoHotKey scripts.

Follow these steps:

  • Install AutoHotKey
  • Create New AHK Scripts Following Images
  • Add this code ^SPACE:: Winset, Alwaysontop, , A
  • Then double-click your script to run it. You know that it works because the green “H” logo will appear on your system tray so that you know it works as a background process.
  • Now press Ctrl + Space to always set any active window at the top. Press Ctrl + Space to set the window on top again.

enter image description here

enter image description here

enter image description here

+5
source

Source: https://habr.com/ru/post/1273961/


All Articles