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

Jin Liu <ad.liu....@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |core
            Version|5.88.0                      |git master
           Platform|Neon Packages               |Archlinux Packages
            Product|frameworks-kconfigwidgets   |kwin
           Assignee|kdelibs-b...@kde.org        |kwin-bugs-n...@kde.org

--- Comment #2 from Jin Liu <ad.liu....@gmail.com> ---
I did some debugging and found this is indeed a kwin bug. But I don't know kwin
enough to fix it though.

The bug happens when X11, 250% zoom, screen size is not multiply of 3, and
KDE/Qt apps only.
The code is kwin/x11window.cpp: X11Window::isFullScreenable :

>    if (rules()->checkStrictGeometry(true)) {
I don't know why but seems all KDE apps require strict geometry, while other
apps don't. So only KDE apps pass the above check.

>        // check geometry constraints (rule to obey is set)
>        const QRect fullScreenArea = workspace()->clientArea(FullScreenArea, 
> this);
In my computer fullScreenArea is (3200,2000)

>        const QSize constrainedClientSize = 
> constrainClientSize(fullScreenArea.size());
While constrainedClientSize is (3198, 1998). I.e. rounded to multiply of 3.
That 3 comes from WM_SIZE_HINTS which specified resize increment = 3. I didn't
track where that size hint come from, but again only KDE apps get that resize
increment hint.

>        if (rules()->checkSize(constrainedClientSize) != 
> fullScreenArea.size()) {
So this check fails for all KDE apps in this particular screen size and zoom
combo.

>            return false; // the app wouldn't fit exactly fullscreen geometry 
> due to its strict geometry requirements
>        }
>    }

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

Reply via email to