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

            Bug ID: 504723
           Summary: The Zed editor window is larger than it’s assigned
                    size when noBorder is set
    Classification: Plasma
           Product: kwin
      Version First 6.3.5
       Reported In:
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: compositing
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 181698
  --> https://bugs.kde.org/attachment.cgi?id=181698&action=edit
Illustration of the problem

(Not sure if this is more an issue in zed or kwin. I’m not familiar with the
wayland protocol)

SUMMARY
The zed editor is a Rust program using some custom rendering framework.
When the title and border are shown, there is no visual problem. But if the
"noBorder" attribute is set, such as with a window rule, (no title bar and
border), it’s window occupy more space than whatever it should. This result,
for example, in maximized applications rendering a bit more than what they
should.

First observed on krohnkite

STEPS TO REPRODUCE
1. Install the zed editor (See for your package manager
https://repology.org/project/zed-editor/versions or https://zed.dev/download).
It’s a GPL software.
2. (some term might not be exact for language difference reason) open window
rules settings of kde
3. add a new one
4. Add a description of "zed" (I don’t know if that is important at all)
5. for the window class specify "matching a substring" with "Zed"
6. Add a property "no titlebar or border".
7. Set the value to true and set it to always apply "force"
8. launch the zed editor.

OBSERVED RESULT
When this window snap with the screen border, you can see the window is a few
pixel larger than the window size. (or also when maximized). Also happen when
the window is resized to occupy the screen (still with border snapping), but
not when maximized or fullscreen. Also, the border of the application is square
instead of its usual rounded.

(note: I use the Super + mouse click + mouse movement to move (left) and resize
(right) the window)

EXPECTED RESULT
When resized to use the 

SOFTWARE/OS VERSIONS
Output of kinfo:

Operating System: NixOS 25.05
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx
Memory: 15.1 Gio of RAM
Graphics Processor 1: AMD Radeon Vega 8 Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650

ADDITIONAL INFORMATION
Original bug on krohnkite: https://github.com/anametologin/krohnkite/issues/179

Potentially related upstream issue:
https://github.com/zed-industries/zed/issues/13845 but seems related to a
somewhat different issue on X

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

Reply via email to