[GH-ISSUE #548] [Question/Request] Report to server which program has focused #429

Closed
opened 2026-05-05 06:22:11 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @Geobert on GitHub (Jan 29, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/548

Hi,

I'm using on the server a MMO mouse Logitech G600 which uses Logitech Gaming Software to dynamically change the mouse profile. As a gamer, the usage is obvious, as a dev, I'm abusing the software to map some hotkeys on the thumb cluster for different tools (Firefox, VSCode, Android Studio…).

It seems that the software relies on which process is focused to switch it's profile (as we assign one or multiple .exe to a profile).

What would be cool is that clients report back to the server which process is focused so the change of profile works on client too.

I don't know how this fit in a cross-platform context nor if it's feasible but it would make me more productive for sure :D

Regards,

Originally created by @Geobert on GitHub (Jan 29, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/548 Hi, I'm using on the server a MMO mouse Logitech G600 which uses Logitech Gaming Software to dynamically change the mouse profile. As a gamer, the usage is obvious, as a dev, I'm abusing the software to map some hotkeys on the thumb cluster for different tools (Firefox, VSCode, Android Studio…). It seems that the software relies on which process is focused to switch it's profile (as we assign one or multiple `.exe` to a profile). What would be cool is that clients report back to the server which process is focused so the change of profile works on client too. I don't know how this fit in a cross-platform context nor if it's feasible but it would make me more productive for sure :D Regards,
Author
Owner

@Geobert commented on GitHub (Jan 29, 2020):

I forgot the "question" part: if it's considered usefull, I can do it but where should I look in the codebase to add this?

<!-- gh-comment-id:579876898 --> @Geobert commented on GitHub (Jan 29, 2020): I forgot the "question" part: if it's considered usefull, I can do it but where should I look in the codebase to add this?
Author
Owner

@the-wes commented on GitHub (Mar 3, 2020):

Since Barrier only interacts with the key and mouse input layer of the OS, it does not normally see what process has focus at any given time. So to implement this, one would not only have to monitor for the active process, but also modify the protocol to make room for sending this info.

<!-- gh-comment-id:593878818 --> @the-wes commented on GitHub (Mar 3, 2020): Since Barrier only interacts with the key and mouse input layer of the OS, it does not normally see what process has focus at any given time. So to implement this, one would not only have to monitor for the active process, but also modify the protocol to make room for sending this info.
Author
Owner

@Geobert commented on GitHub (Mar 3, 2020):

Thank you for your answer. I'll see if I have the bandwidth to tackle this one day :)

<!-- gh-comment-id:593887525 --> @Geobert commented on GitHub (Mar 3, 2020): Thank you for your answer. I'll see if I have the bandwidth to tackle this one day :)
Author
Owner

@github-actions[bot] commented on GitHub (Sep 30, 2020):

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:701108208 --> @github-actions[bot] commented on GitHub (Sep 30, 2020): This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@p12tic commented on GitHub (Jan 10, 2021):

I think this is out of scope of Barrier because the feature is guaranteed to not work on window managers (e.g. Wayland) which restrict access to what windows are in focus at a certain moment of time.

<!-- gh-comment-id:757522413 --> @p12tic commented on GitHub (Jan 10, 2021): I think this is out of scope of Barrier because the feature is guaranteed to not work on window managers (e.g. Wayland) which restrict access to what windows are in focus at a certain moment of time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#429
No description provided.