Bug 438912 - No output from KMagnifier on Wayland
Summary: No output from KMagnifier on Wayland
Status: REOPENED
Alias: None
Product: kmag
Classification: Applications
Component: general (show other bugs)
Version: 21.04.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: sarang
URL:
Keywords: wayland
: 468885 472320 472437 485291 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-19 13:36 UTC by Dominik Adrian Grzywak
Modified: 2024-04-10 19:38 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
(Screenshot) KMag on Wayland has no output but a window frame (350.73 KB, image/png)
2021-06-19 13:36 UTC, Dominik Adrian Grzywak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Adrian Grzywak 2021-06-19 13:36:21 UTC
Created attachment 139515 [details]
(Screenshot) KMag on Wayland has no output but a window frame

SUMMARY
Since no one reported this long-standing bug here yet, i will.
KMag has no output while running on Wayland – in the place where the output should be, it just shows a window frame (see attachment).
I also tried another modes, but they also don't work.

STEPS TO REPRODUCE
1. Be running on KDE Wayland session (probably not just on KDE Plasma, but didn't test the others)
2. Run Kmag
3. Here's the bug, you can also test another modes, but they also don't work.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux (Unstable branch)
(available in About System)
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Comment 1 indecisiveautomator 2021-10-27 16:40:03 UTC
Still a bug, affecting me on Arch Linux with Plasma 5.23.2. It's not an application I use very often but it is annoying when I need to use it.

Possibly related to issues surrounding global cursor positioning being unavailable under Wayland (see #430781), which there is no real solution for it seems like.
Comment 2 skierpage 2022-03-09 21:38:45 UTC
At least someone should update the README, TODO (20 years old!), and https://apps.kde.org/kmag/ to say "kmag does not work on Wayland yet".

I couldn't find an alternative. The gnome-mag binary seems unavailable, I think it became a Gnome shell service. There's a System Settings > Desktop Effects > Magnifier effect, but I couldn't get it to work in Wayland.

One workaround is to take a screenshot with Spectacle. Maybe there's a way to use something like OBS to capture your screen and monitor a zoomed-in portion of it.
Comment 3 skierpage 2022-11-16 23:59:17 UTC
KMagnifier (I'm using full word here otherwise you can't find this bug) is still broken under Frameworks 5.99.0, Qt 5.15.6 on Wayland.
Comment 4 daf 2023-10-01 12:16:01 UTC
*** Bug 472320 has been marked as a duplicate of this bug. ***
Comment 5 daf 2023-10-01 12:16:18 UTC
*** Bug 472437 has been marked as a duplicate of this bug. ***
Comment 6 daf 2023-10-01 12:30:18 UTC
I'm still staying on X11 to use this accessibility tools, but it's not even listed on https://community.kde.org/Plasma/Wayland_Showstoppers .

Has this tool been replaced by something else already on Wayland? If not, is accessibility not being considered when migrating to Wayland by default?
Comment 7 Henning 2023-10-12 21:32:02 UTC
Just wanted to comment that for accessibility having this not work is a dealbreaker for many people. If KMag was ever a project people took seriously, than until it works on Wayland at least X11 has to be supported on all Distros etc...
Comment 8 Nicolas Fella 2023-10-12 21:50:34 UTC
What exactly do you use/need from KMag? There's a native Zoom functionality in KWin (Systems Settings > Desktop Effects > Accessibility > Zoom) that works on Wayland
Comment 9 Henning 2023-10-12 22:08:26 UTC
Thanks for the heads up, I forgot about this setting!

This is fixed for now then. KMag itself seems useless in this case, I will file a bug for Kinoite to remove it.

The two zoom options are perfect (If I imagine what I would want from such an app)
Comment 10 Nicolas Fella 2023-10-12 22:15:30 UTC
I'm still interested to know whether there are relevant use cases that KMag covers that the native KWin feature doesn't.

Making the existing KMag code work on Wayland would likely be difficult at best, so the better path forward would most likely be to amend the KWin functionality instead
Comment 11 Jaak Ristioja 2023-10-13 08:37:09 UTC
I have regularly used KWin to inspect individual pixels, e.g. for GUI and web design, when things need to be pixel-perfect. The KWin zoom functionality is insufficient for this because it blurs the pixels, making it difficult to inspect individual pixels and their boundaries. I think KMag also drew a hairline grid between the different pixels when zoomed in.
Comment 12 Rafael Linux User 2023-10-13 10:29:49 UTC
(In reply to Jaak Ristioja from comment #11)
> I have regularly used KWin to inspect individual pixels, e.g. for GUI and
> web design, when things need to be pixel-perfect. The KWin zoom
> functionality is insufficient for this because it blurs the pixels, making
> it difficult to inspect individual pixels and their boundaries. I think KMag
> also drew a hairline grid between the different pixels when zoomed in.

I agree. In fact, this feature of Plasma even zoom all other connected monitors. I use Kmag with applications (like Java based or Wine launched executables)  that shows all text 1/5 my desktop size, being impossible to read without magnifying locally.
Comment 13 Henning 2023-10-13 19:51:24 UTC
okay in this case i think it should be reopened.

missing features currently: pixel perfect zooming and a hairline
Comment 14 rosswzyang 2024-02-04 14:35:36 UTC
(In reply to Henning from comment #13)
> okay in this case i think it should be reopened.
> 
> missing features currently: pixel perfect zooming and a hairline

still exists on plasma 6 currently
Comment 15 bugsie 2024-04-10 17:55:06 UTC
*** Bug 468885 has been marked as a duplicate of this bug. ***
Comment 16 bugsie 2024-04-10 17:59:37 UTC
*** Bug 485291 has been marked as a duplicate of this bug. ***
Comment 17 Rafael Linux User 2024-04-10 19:38:05 UTC
> still exists on plasma 6 currently

Still doing nothing in Plasma 6