Skip to content

Editor settings opens a separate window on tiling window manager (Hyprland) #725

@zjeffer

Description

@zjeffer

This has actually been going on since forever, I just never bothered to create an issue about it ;)

notes.webm
  • Opening the editor settings opens a separate window. In Hyprland, separate windows will always tile by default.
  • Moving focus from the editor settings to the main window will close the editor settings
  • If I use my shortcut to make a window tileable, the window can be resized but I can't scroll down if I make the window smaller.
  • If I ensure the editor settings window is initially opened much smaller, the scrollbar does appear and works fine.

So I think the main problem is that the editor window is not classified as a popup, but rather a whole new window?

Activity

zjeffer

zjeffer commented on Feb 8, 2025

@zjeffer
CollaboratorAuthor

Interestingly, this doesn't occur when opening the editor settings in the kanban view, there it just opens and closes fine as a popup instead of a separate window.

nuttyartist

nuttyartist commented on Feb 15, 2025

@nuttyartist
Owner

@zjeffer It's that way since when you're in the text mode the right pane is using QWidgets and when in Kanban mode the right pane is in QML. And since the editor settings is written in QML, in order to open it while the QWidgets right pane is still showing, i.e. in order to open the editor settings as a popup, we need to create a new QWindowContainer that behaves like a popup and renders the QML. If the Kanban is open we simply wrap the EditorSettings component with Popup in QML and show it inside the QML view.

The proper solution (which must be done in any case IMO) is to re-create the right pane in QML. It should be fairly easy, I did that already for Daino Notes (the plain text view).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Editor settings opens a separate window on tiling window manager (Hyprland) · Issue #725 · nuttyartist/notes