Infiziert90 / ChatTwo

European Union Public License 1.2
20 stars 17 forks source link

feat: add autohide after inactivity #83

Closed deansheather closed 3 months ago

deansheather commented 3 months ago

After not receiving a message for X seconds (configurable) in the current tab or any tab with unread mode enabled, the chat will be hidden. Focus can be returned with return or slash as usual.

Having input focus or hovering the mouse over the chat window "bumps" it every frame.

Also fixes a bug that prevented focus from being restored to tabs with input disabled. The chat window will now be correctly brought back but the activated event won't be fully processed.

Thanks @aurieh

https://github.com/Infiziert90/ChatTwo/assets/11241812/5a2b4f8a-99e6-4a67-8ae8-b154b7cab9a6

Relates to #80