-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Image viewer doesn't render to window border when not fullscreen. #26481
Comments
That's weird, it's supposed to be frameless, the empty space should be transparent |
I seem to be unable to reproduce
This step does nothing on my machine |
@ilya-fedin, are you using KWin and KDE Plasma? |
well, I'm trying using a VM with KDE Neon |
Apologies, @ilya-fedin, I meant Alt+F3. (It's an out-of-the-box keybind.) |
Now I'm getting a maximized window after step 2, not what on your screenshot |
Send me a screenshot, @ilya-fedin. |
Understood, @ilya-fedin. Thanks. Ensure you're using X11. I know that the subsequent images state "Wayland" but that's for a debugging purpose irrelevant to this issue. Extract https://github.com/telegramdesktop/tdesktop/files/11962605/ForceEnableWindowTitleBarAndFrame.kwinrule.zip and import (there's a handy "Import" button) It'll appear in the list. Ensure it looks like This will definitely let you see the issue. |
Broken UX after such rules is completely expected. You can't force application do what it's not designed to do and expect it will work as expected. You have voided your warranty. |
@ilya-fedin, lots of Window Managers force SSD for a lot of reasons. For instance, Windows does it for accessibility purposes. I anecdotally know of two people who the same with KDE for that purpose. They introduced me to the functionality, although I only do it because the makes the system more intuitive. Some WMs don't even support removing the window border, although they're definitely the more obscure of the bunch. |
This window doesn't support server-side decorations, that's just not implemented by designer's request and it won't be. You have to accept that or create a fork. |
Then I'll close this as not planned if so, but in the meantime please remove https://github.com/telegramdesktop/tdesktop/issues?q=label%3A%22cant+reproduce%22, @ilya-fedin.
It definitely does support SSD. Otherwise it wouldn't render with the native titlebar. It even includes an explicit option "Use system window frame": |
It's another window. This one does support system window frame, yes. Media viewer, call windows do not. |
Is allowing them to support it such an undesirable feature, @ilya-fedin? |
there's already a request for call windows. Although I don't think such requests will be ever implemented. It's way more likely that the main window would lose such ability than the other way around. |
@ilya-fedin, do you have the link for that request? I'd like to subscribe. |
I've noticed something interesting about the behaviour when this (unsupported) window rule is enabled - the image viewer now renders at the size it was previously resized to rather than fullscreen, and thus necessitating resizing every time I view an image. I think this is great - it fixes my biggest gripe about the image viewer, it being that the images filled by screen, and provides a proper windowed integrated-into-telegram image viewer. |
I don't quite understand what you mean? The custom frame allows you to resize as well. |
Oh, yeah. I never noticed those dimmed custom titlebar buttons, @ilya-fedin. |
https://bugs.telegram.org/c/29731
Steps to reproduce
Click on image to enlarge it whilst using https://wikipedia.org/wiki/KWin
Press Alt+F3 and disable fullscreen
Actual behaviour
Expected behaviour
The image, or at least the dark translucent border, should render to the edges of the window.
I believe that the best solution is to:
Operating system
Operating System: openSUSE Tumbleweed 20230703
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.3.9-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Version of Telegram Desktop
6.8.1
Installation source
https://software.opensuse.org/package/telegram-desktop
Crash ID
No response
Logs
No response
The text was updated successfully, but these errors were encountered: