Skip to content

Wire up the --fullscreen flag - #966

Open
jcmendez wants to merge 1 commit into
Swordfish90:masterfrom
jcmendez:fix-fullscreen-flag
Open

Wire up the --fullscreen flag#966
jcmendez wants to merge 1 commit into
Swordfish90:masterfrom
jcmendez:fix-fullscreen-flag

Conversation

@jcmendez

Copy link
Copy Markdown

Summary

  • --fullscreen has been documented in --help for a while but was never actually implemented: nothing set a related context property, and no QML read one, so passing --fullscreen was silently a no-op (the terminal always opened as a normal window).
  • app/main.cpp now exposes a startFullscreen root context property based on args.contains("--fullscreen").
  • app/qml/TerminalWindow.qml's fullscreen property now defaults to that instead of a hardcoded false.
  • Also collapsed the separate visible: false / Component.onCompleted { visible = true } pattern into a single visibility assignment. Keeping both visible and visibility explicitly set (which now happens whenever fullscreen starts true) triggers QtQuick's Conflicting properties 'visible' and 'visibility' warning, and the fullscreen request was silently dropped as a result.

Test plan

  • Built and ran with --fullscreen: window now opens fullscreen, no more "Conflicting properties" warning in the log
  • Built and ran without the flag: unchanged normal windowed behavior

The flag was documented in --help but never actually implemented:
nothing set a context property for it and no QML read it, so passing
--fullscreen was silently a no-op. TerminalWindow now picks up its
initial fullscreen state from this.

Also drops the separate visible/Component.onCompleted dance in favor
of a single visibility assignment, since setting both visible and
visibility explicitly (which happened whenever fullscreen started
true) triggers a QtQuick "Conflicting properties" warning and the
fullscreen request was silently lost.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant