Skip to content

Bug: Always on top state doesn't persist through making the window full screen and back. #481

@Trannosaur

Description

@Trannosaur

I'm not sure what the proper fix would be, but I can see the problem is in onVisibilityChanged in main.qml

When you go into full screen it strips the Qt.WindowStaysOnTopHint flag, and presumably doesn't restore it.

onVisibilityChanged: {
    var enabledAlwaysOnTop = root.visible && root.visibility != Window.FullScreen;
    systemTray.alwaysOnTopEnabled(enabledAlwaysOnTop);
    if (!enabledAlwaysOnTop) {
        root.flags &= ~Qt.WindowStaysOnTopHint;
    }
.....

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