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

Notification does not appear if Video is full screen #473

Closed
programcoder opened this issue Feb 4, 2015 · 27 comments
Closed

Notification does not appear if Video is full screen #473

programcoder opened this issue Feb 4, 2015 · 27 comments

Comments

@programcoder
Copy link

programcoder commented Feb 4, 2015

Notification (in windows) does not appear if Video is full screen. Any video regardless of any player Flash video, Youtube video, VLC player video.

It USED TO appear over videos before the last update.

@auchri
Copy link
Contributor

auchri commented Feb 5, 2015

Notifications doesn't appear any more if a fullscreen application is running, because it's sometime annoying (when playing a game or something like this)

@Aokromes
Copy link
Collaborator

Aokromes commented Feb 6, 2015

So, this PR is no longer needed?
#376
Maybe someone wanna have it as setting.

@auchri
Copy link
Contributor

auchri commented Feb 6, 2015

I think that the pull request can be deleted.

I agree with you, a setting would be fine.

@brynthomas
Copy link

@Aokromes My pull request did NOT block full screen notifications from apps like full screen Chrome, VLC, PowerPoint etc. I explicitly tested it and changed the way it worked so that those would still go through, so that having the setting was less necessary. Only D3D Full Screen games would be blocked, as those were the ones that worked poorly with notifications anyway, where clicking on it would force a screen resolution switch.

(i.e. there's a different flag set for full screen for games like @auchri talks about, as this was my issue with Telegram, vs other full screen apps)

@brynthomas
Copy link

Just as a follow up, the code for notification suppression is doing the following check:

(state == QUNS_PRESENTATION_MODE || state == QUNS_RUNNING_D3D_FULL_SCREEN || state == QUNS_BUSY)

That last one, checking if state is QUNS_BUSY, causes it to overaggressively filter notifications for anything that behaves even slightly full-screenish. Taking that one out would make it work a lot nicer.

@Aokromes
Copy link
Collaborator

Aokromes commented Feb 6, 2015

@brynthomas ok :) i had the idea of some change made your PR no longer needed :)

@brynthomas
Copy link

@Aokromes Yup, the changes are pretty much what was in the pull request, so yeah it can be closed. Just wanted to push for the notification suppression to be less aggressive as with the version in the PR. I think it's better to err on the side of showing notifications, and only to hide them when you're in an app where clicking them could potentially happen accidentally or crash the app you're in (as with full screen games).

Having this current behaviour on a toggle in the settings menu would be a bit annoying, because I'd have to keep turning it on and off. I wouldn't want it to hide notifications when using VLC/Youtube/Twitch, but then I'd have to remember to switch it before and after playing a game.

I still made it play the notification bong when in game so you'd know someone was trying to contact you even if you couldn't see it, I'm not sure if that carried through in the live version.

@auchri
Copy link
Contributor

auchri commented Feb 6, 2015

@brynthomas the notification sound is playing even if a fullscreen application is running.

@programcoder
Copy link
Author

Well, too bad its a pain to build Telegram desktop on windows considering, I merely have Visual studio Express, which does not support Qt add-on and I am yet to figure out how to make it work with only Qt creator or so otherwise I have removed that QUNS_BUSY on my own.

well, Hopefully they get rid of it for videos or anything that does not change resolution, or just add a setting that would ask whether you want to see notifications in full screen apps or not.

@Aokromes
Copy link
Collaborator

Aokromes commented Feb 7, 2015

@programcoder you can get Visual Studio 2013 community edition for free :)
http://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx

@programcoder
Copy link
Author

Thanks a ton, wasn't aware about that. Been using Express ever since 2008 Express :p
Well, I just hope that they do it in official repo, either setting or just allowing Video over notification.

But setting would be most preferable.

@programcoder
Copy link
Author

@Aokromes Thank you very much, I have built the telegram with removed notification condition successfully :) 👍

@telegramdesktop
Copy link
Collaborator

Thanks, I will remove QUNS_BUSY in the next version. I've read the docs on that and it told me to suppress notifications in busy too =(

@programcoder
Copy link
Author

@telegramdesktop I have already done that in my build, but just removing that does not help it to appear over video's played using VLC etc. you also need to remove QUNS_RUNNING_D3D_FULL_SCREEN for that

I would rather suggest creating a GUI setting for that, for those who need it off or on.

that is, usually people would prefer a notification to appear on video, but would not over a game or something, so they can just do that using that particular setting, please implement if possible.

@auchri
Copy link
Contributor

auchri commented Feb 20, 2015

@telegramdesktop please readd QUNS_BUSY, I don't want notifications while watching YouTube videos :(

@programcoder
Copy link
Author

@auchri That's why I said, Make it a GUI setting

@Aokromes
Copy link
Collaborator

Or 2, one for D3D / OpenGL (games) and another for QUNS_BUSY

@programcoder
Copy link
Author

heh, Owner needs to agree to add GUI option for this, But I do heavily support it.

@auchri
Copy link
Contributor

auchri commented Feb 21, 2015

without QUNS_BUSY the notifications appear over some games, e.g. robocraft

@brynthomas
Copy link

@auchri Windows really is such a no-win operating system with APIs like this. There isn't a right answer, you get stuck with two poor options and end up forcing people into toggling settings to get a least-bad setup.

Regarding still seeing it in games, that game is probably running in "borderless" rather than full screen. You can tell a borderless game where you can switch to other apps without having the brief black screen when you switch apps. The D3D_FULL_SCREEN games are the ones where Telegram notifications was a real bug, since it could result in crashes/messed up output/flickering (see Battlefield or Rise of Nations). Borderless games are "just" a pain to have an overlay, or an accidental click on the notification box that switches you out the game.

Guess it comes down to adding options for these things. I hope Windows's Toast system will provider a better way to do this in the future.

@programcoder
Copy link
Author

I have added a GUI configuration. I am not sure whether I should make a pull request for it.

I have not added the strings for all languages though, as I am not aware with any of those.

modified

@miva2
Copy link

miva2 commented May 12, 2015

I came here to say I get notifications over fullscreen video and it is very annoying.
So there currently is no way in turning those off in fullscreen only but you guys have been working on a setting? I hope you continue this, it is a very good idea.

@fqdb
Copy link

fqdb commented Jul 8, 2015

So if I understand this correctly, it was explicitly implemented to have notifications appear over for example full screen Powerpoint presentations?

Is there any news on adding the option to toggle this behaviour?

@electricessence
Copy link

Hey, when can we get this fixed? It's ruined games I've been playing.

@auchri
Copy link
Contributor

auchri commented Nov 14, 2016

#473 <=> #2290

@ghost
Copy link

ghost commented Nov 15, 2017

Hey there!

We're automatically closing this issue since there was no activity in this issue since 365 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

@ghost ghost closed this as completed Nov 15, 2017
@ghost ghost added the auto closed label Nov 15, 2017
@github-actions
Copy link

github-actions bot commented Mar 8, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants