https://bugs.kde.org/show_bug.cgi?id=471132

            Bug ID: 471132
           Summary: _NET_FRAME_EXTENTS returns incorrect output on
                    XWAYLAND
    Classification: Plasma
           Product: kwin
           Version: 5.27.4
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: dofficialg...@gmail.com
  Target Milestone: ---

SUMMARY
When using XWAYLAND to draw windows, we can use xwininfo and xprop to get
output from the currently drawn window. The values returned for
_NET_FRAME_EXTENTS are incorrect when using any scaling factor (fractional and
whole). The values returned should be the size of the window borders at the
current scaling factor. For example, if the top border is 29pixels at 100%,
then at 200% we would expect this value to be 58pixels from 
_NET_FRAME_EXTENTS. However the value reported is still 29pixels.

STEPS TO REPRODUCE
1. spawn a window in xwayland with some scaling factor used (example of a YAD
window spawned in the top left: ex: `GDK_BACKEND=x11 yad
--geometry=200x200+0+0`)
2. check the winows output from xwininfo and note the "Absolute upper-left Y:"
`xwininfo`
3. compare to the output from xprop `xprop _NET_FRAME_EXTENTS -id
window_id_from_xwininfo`

OBSERVED RESULT
the observed result is that the output from xwininfo is correct with the
"Absolute upper-left Y:" equaling the scaled window border size while the
output from _NET_FRAME_EXTENTS is the window border size without any scaling.
This is not the case on GNOME or native XORG with scaling

EXPECTED RESULT
the output from xwininfo and _NET_FRAME_EXTENTS match

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu Lunar 5.27.4
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to