Skip to content

[Bug] Graphite Window Draw and Artboard Offset #3607

@fuguesoft

Description

@fuguesoft

graphite-window-draw-and-artboard-offset

Specs

[x] Operating System: Debian GNU/Linux 13.0 (trixie)
[x] Desktop Environment: sway/WM
[x] Terminal Emulator: foot
[x] Shell: fish 4.0.2
[x] Graphite Version: Alpha 4 (Flatpak)
[x] Hardware: Framework 13" 7840U
[x] Resoultion: 2880 x 1920

Description

This was present RC-1 and it's probably more of a window manager thing
The window can draw kinda weird when opened fresh in a tiling window
and exascerbates when resizing.

Creating a new document and tabbing around the interface can force it to redraw
correctly.
You'll also notice that the canvas is a bit offset when opening said new
document from this state.
This can easily be replicated be using ctrl + O to open a file picker window
as well.

Basically anything that resizes the Graphite window will make this bug present.

Steps to reproduce

  1. Close all documents from any previous session
  2. On a fresh sway workspace, open any other program window in tiling mode
  3. Close and reopen Graphite
  4. Resize Graphite via swayWM's resize mode
  5. Observe the extra negative space in Graphite's UI
  6. Observe that the four initial options are not clickable:
  7. New Document
  8. Open Document
  9. Open Demo Artwork
  10. Support the Development Fund
  11. Use ctrl + n or ctrl + , to open a Graphite dialogue
  12. Observe that the window redraws itself.
  13. Press tab or click inside the dialogue box
  14. Observe that the window now draws correctly.
  15. Once the window draws correctly, create a new document
  16. Observe that the artboard is not clearly visible and is offset on the
    positive x and y axes.

Expected behavior

Graphite resizes appropriately without need for user intervention.

Screenshots

Window draw issue when resizing:
https://0x0.st/Po7y.mp4

Canvas offset (only seems to appear along with the resizing issue):
https://0x0.st/Po7w.mp4

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions