OK, this may be a very specific question now, but maybe someone can help anyway:
Does anyone have experience (or an idea) of how to move the window of a Lazarus form from one activity to another via code (not necessarily in ObjectPascal, it could also be an external shell call)?
I have a modest application that I use frequently and that I don't want to restart if it's already running. Instead, the running application's window shall be switched from the activity where it was displayed before to my current activity.
UniqueInstance works very well when it comes to preventing multiple start.
However, in order to achieve the behavior described above, I must also
(1) find out on which activity the most recent start attempt took place
- and -
(2) move the current window to this activity.
I've been looking around for a while, but haven't found neither solutions nor further informationabout a Linux command line tool capable of moving an existing window from activity A to activity B.
Therefore any idea would be welcome!