telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.36k stars 5.04k forks source link

Context / Right-Click Menu Opens in Wrong Display / dual gfx / amd #7099

Closed antoniscy closed 2 years ago

antoniscy commented 4 years ago

I usually keep my Telegram Desktop window on my secondary monitor (I've got 3). Sometime along the 1.9.x versions the context menu started appearing on the primary display only.

If i move the app on the primary display, right-click menu works as expected. When it goes back in its normal position on the 2nd monitor then context menu appears on primary display (the x,y coordinates change depending on where the right-click was - just on the wrong monitor!)

antoniscy commented 4 years ago

Currently on version 1.9.8 on Windows 10

Aokromes commented 4 years ago

strange, cannot reproduce myself on windows 10 20h1, telegram desktop 1.9.8 and dual monitor system, what's your gfx?

antoniscy commented 4 years ago

AMD Radeon R7 200, and Intel HD Graphics 4600

Aokromes commented 4 years ago

try updating video drivers to see if that changes something....

antoniscy commented 4 years ago

i did... no change

by the way, desktop client was working fine for more than 2 years...this is a recent bug

Aokromes commented 4 years ago

dunno, i don't have a 3 monitors or amd gfx to test :/ can you try telegram desktop 1.8.15 portable and increase builds till you find what versions bugs? maybe it's qt 5.12.5 issue.

antoniscy commented 4 years ago

1.8.15 portable works correctly.

not sure where to get newer versions of the portable - https://desktop.telegram.org/changelog#old-system-versions only has 1.8.15

antoniscy commented 4 years ago

i think you are right about it being a qt problem... https://bugreports.qt.io/browse/QTBUG-76162

Aokromes commented 4 years ago

you can get other portable builds here https://github.com/telegramdesktop/tdesktop/releases

antoniscy commented 4 years ago

thanks.

1.9.0 shows the problematic behavior so 1.8.15 is the last version working correctly

Aokromes commented 4 years ago

strange, theorically it was already fixed on 5.12 on jun 2019....

https://github.com/qt/qtbase/commit/82da8306bc1313b85632eee0faf858239261a092 ok it looks they may fixed it only on linux.

antoniscy commented 4 years ago

TD just updated to 1.9.13 - problem still exists!

antoniscy commented 4 years ago

TD just updated to 1.9.14 - problem still exists!

Aokromes commented 4 years ago

imho you need to report to QT.

antoniscy commented 4 years ago

well, i am not a developer and i am not familiar with TD source code so i don't know where/how/what level of detail&information would be required for the report to QT

Aokromes commented 4 years ago

you may try asking on https://wiki.qt.io/Online_Communities to get confirmation or denial of someone there :)

antoniscy commented 4 years ago

Today updated to 1.9.18beta - issue still there...

Aokromes commented 4 years ago

ofc, it very likely needs fix QT5 side.

lipusal commented 4 years ago

I've also been facing the same issue for some months now, I also have 3 monitors and a Radeon RX 580 with updated drivers. In my case, when the main monitor is off the right-click menu works correctly. When I turn it on, the right-click menu goes back to the main monitor regardless of where the Telegram window is.

(Edit: This is on Windows)

@antoniscy if you've reported it anywhere on QT5 please post a link so I can help.

alextor70 commented 4 years ago

I have 4 monitors on two adapters: ATI Radeon HD 5700 and Intel HD 4000. This issue reproduced when my main monitor is one of two on Radeon (and telegram is on any other monitor). When my main monitor is one of two on Intel HD, then telegram context menu works correctly (telegram can be on any of monitors).

nichitapavel commented 4 years ago

Same for me, version 2.0.1.

Aokromes commented 4 years ago

can you try on 2.1?

nichitapavel commented 4 years ago

can you try on 2.1?

Checked: still happens.

lipusal commented 4 years ago

Still happening to me too on 2.1, behavior: a

This is on my Windows desktop. In a similar setup with a Macbook (left monitor connected via USB-C => HDMI adapter + Macbook screen), the context menu works correctly.

TheDjEzio commented 4 years ago

Same to me Radeon RX 580 Series i5-4460 Telegram 2.1.8 beta

pmartiamarista commented 4 years ago

same... Windows 10 19041 i5-4460 r9 270x driver 20.5.1 Telegram 2.1.10

nichitapavel commented 4 years ago

Version 2.1.13 persists. I recently had an opportunity to switch to combination nvidia + intel gpu's: it worked, the problem must be strictly related to amd gpu's.

ezekini commented 3 years ago

Same problem on latest build (2.3) on Mac OS.

ilya-fedin commented 3 years ago

Same problem on latest build (2.3) on Mac OS.

Are you sure that this is a right issue? All previous affected users are using Windows with AMD graphics (i.e. some bug in interacting between Qt & AMD drivers)

ezekini commented 3 years ago

Same problem on latest build (2.3) on Mac OS.

Are you sure that this is a right issue? All previous affected users are using Windows with AMD graphics (i.e. some bug in interacting between Qt & AMD drivers)

The description is the same. Using multiple monitors, when the telegram window is not on the primary monitor, the context menu appears in the main desktop.

Kigunix commented 3 years ago

Same problem. I'm using 2 different GPU's for two monitors. RX 570 + GTX 660, main screen on RX and secondary on GTX. Telegram_2020-10-20_15-50-20

ilya-fedin commented 3 years ago

Qt was updated in 2.4.8 again, maybe they fixed this bug finally?

ilya-fedin commented 3 years ago

Hmm, no response for 10 days, should I assume that the issue is fixed and could be closed?

lipusal commented 3 years ago

Unfortunately I am away from the offending system for at least a month, won't be able to try until then. If this issue gets closed and 2.4.8+ does not solve the issue when I can try it, I will open a new issue

antoniscy commented 3 years ago

Problem is still there on 2.4.11 beta

ilya-fedin commented 3 years ago

Ok.

Fratee commented 3 years ago

Same problem here in 2.5.1 . Windows10, 2 screens (primary below, secondary on top). Telegram desktop app on secondary screen, context menu opens on primary.

edit: i bet is due to the coordinate on the screen going negative in reference to the primary screen, my two cents

ilya-fedin commented 3 years ago

edit: i bet is due to the coordinate on the screen going negative in reference to the primary screen, my two cents

This happening only on AMD cards, so this is either a bug in AMD drivers or how Qt works with gfx API

www10177 commented 3 years ago

edit: i bet is due to the coordinate on the screen going negative in reference to the primary screen, my two cents

This happening only on AMD cards, so this is either a bug in AMD drivers or how Qt works with gfx API

AMD RX580, TG version 2.5.1 , context menu show in primary screen(RX580) only, primary screen connect with RX580, secondary one go integrated graphics when I switch primary screen(primary:Integrated, secondary:RX580) , It show on primary one(Intergrated) only.

nothing wrong on my another dual screen NVIDIA PC(TG version not sure, both connect to NVIDIA graphic card)

kaserblade99 commented 3 years ago

I'm running off of a Nvidia GTX 1660Ti and I'm having the same problem. Doesn't seem like it's exclusive to just AMD cards.

ilya-fedin commented 3 years ago

in your issue you said you have Radeon graphics as well

kaserblade99 commented 3 years ago

I tried disabling the AMD integrated graphics drivers and replicated the scenario. I seem to still have the same issue.

Edit: I restarted the laptop after I disabled the AMD graphics drivers. The issue has gone away. Reenabled and rebooted the system and the problem is back. Seems to be an AMD rooted issue like you mentioned

Aokromes commented 3 years ago

@antoniscy can you edit title of issue and add amd gfx there?

ilya-fedin commented 3 years ago

Seems to be an AMD rooted issue like you mentioned

I hope someone report this to them...

ilya-fedin commented 3 years ago

@Ondra1230 are you a spammer? :see_no_evil:

ilya-fedin commented 3 years ago

@Ondra1230 exit outside of your mail to this issue on GitHub and look how you spammed this thread with your big posts

john-preston commented 3 years ago

@Ondra1230 you too.

blancoek commented 3 years ago

Having the same happen: Windows 10 19041.508 Intel Core i7-2700K Radeon RX480 4GB + NVIDIA RTX 1060 SC 3GB T22C301 22" Samsung Monitor + SyngMaster SA300 21" Samsung Monitor Telegram Desktop 2.6 running on secondary monitor on the 1060 and messages appearing on the primary one on the 480

NZeee commented 3 years ago

I have the same issue on my MacBook Pro mid 2015 with integrated graphics :(

tylerregas commented 3 years ago

I too am having this issue. It started when I purchased a Sonnet eGFX Breakaway Box and installed an AMD Radeon RX 5500 XT and connected my 2nd monitor to that. The laptop it's connected to via Thunderbolt runs the in-built display while the eGPU runs the 2nd, and yet I've seen many reports of this same issue that have a wide range of configurations, at least among those who bothered to share.

Screenshot (3)

The laptop is an HP EliteBook 840 G6 with Intel HD graphics, 32GBs of RAM, and a 500GB NvME drive. Nothing special. The 2nd display is set as my primary display and Telegram lives on my laptop display, which is relegated to accessory display duties. The context menu, however, appears on the "Primary" display, just like all of the other reports.

I'm running 2.5.9 x64.