Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Flash root window on all platforms #1949

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

Mephistophiles
Copy link
Contributor

Reduce win32 restriction for flashFrame

Maybe I should have an option in the config for this, what do you say?

@CLAassistant
Copy link

CLAassistant commented Jan 12, 2021

CLA assistant check
All committers have signed the CLA.

@tmartincpp
Copy link

Hello,

I have made the same kind of modification (allow Linux in addition to Windows) :
tmartincpp@a59e7dd#diff-99883d1c521e67a9432579aaf9026a31ef591df0da751b4700afd8f6bb39e9e5

I have tested it successfully (all mentions will triggers the taskbar flash).

I think that it would be a great feature to support flashing for more platforms.

Should I do another pull request ?

@bartelme
Copy link

bartelme commented Mar 17, 2021

I really agree this would be nice. I feel like it used to work for us in 2.X but i may be confused. I have team members using skype on their windows systems to let others know they have rocket chat messages waiting on the linux system. Testing this out locally, this is exactly what we want.

Reduce win32 restriction for flashFrame
@Mephistophiles
Copy link
Contributor Author

Oh, I based on the develop branch, my failure. Rebased on the master branch.

@tassoevan tassoevan added this to the 3.2.0 milestone Apr 19, 2021
@tassoevan tassoevan changed the title feat: rootWindow: flashFrame on all platforms feat: Flash root window on all platforms Apr 19, 2021
@tassoevan tassoevan merged commit 5934c56 into RocketChat:master Apr 19, 2021
@pierre-lehnen-rc
Copy link
Contributor

On linux, this change is causing the app to steal focus from other apps whenever the user is mentioned or receives a DM (even across different desktops)

@Mephistophiles Mephistophiles deleted the notifications branch June 29, 2021 11:18
@geekgonecrazy
Copy link
Contributor

Yeah this is very annoying on linux. 🙈 Especially in i3 where focus means the mouse is also moved

@Mephistophiles
Copy link
Contributor Author

How about making the option "flash window on notifications" next to the "Show tray icon" (disabled for Linux by default)?

@geekgonecrazy
Copy link
Contributor

I think i'd personally even be ok having to turn it off via a flag or environment variable. Cause I know adding an option is a good more work :)

Mephistophiles added a commit to Mephistophiles/Rocket.Chat.Electron that referenced this pull request Jul 4, 2021
This commit adds 'Flash window on notifications' toggle to the menu.

PR RocketChat#1949 introduced the flash window for all platforms, but for someone this feature
was too annoying. Because of this was been added the menu toggle for
enable/disable this feature.
Mephistophiles added a commit to Mephistophiles/Rocket.Chat.Electron that referenced this pull request Jul 4, 2021
This commit adds 'Flash window on notifications' toggle to the menu.

PR RocketChat#1949 introduced the flash window for all platforms, but for someone this feature
was too annoying. Because of this was been added the menu toggle for
enable/disable this feature.
Mephistophiles added a commit to Mephistophiles/Rocket.Chat.Electron that referenced this pull request Jul 4, 2021
This commit adds 'Flash window on notifications' toggle to the menu.

PR RocketChat#1949 introduced the flash window for all platforms, but for someone this feature
was too annoying. Because of this was been added the menu toggle for
enable/disable this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants