-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): smarter info window hiding logic #482
base: main
Are you sure you want to change the base?
feat(cli): smarter info window hiding logic #482
Conversation
This changes the ``--hide-info-window-`` command to accept three options: auto, always, and never. Auto will hide the info window if there is only one screen. This also fixes the --full-screen option by moving the info window to monitor 1 and the presentation to monitor 0 by default.
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #482 +/- ##
==========================================
- Coverage 80.96% 80.36% -0.60%
==========================================
Files 23 23
Lines 1886 1905 +19
==========================================
+ Hits 1527 1531 +4
- Misses 359 374 +15 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @PeculiarProgrammer, thanks for your contribution! It looks excellent!
I just had a small comment, but it looks fine otherwise :-)
@PeculiarProgrammer I have pushed some fixes / cleanups. However, I have an issue when I try to set the screen, mainly problems:
In general, it looks like the logic to put windows on specific screens is broken. |
Those issues you described only appear in the code you recently pushed. Reverting back to the older logic fixes them. I combined some of your additions with the older logic and refactored my code. |
I will check that tomorrow when I have access to a second monitor :-) |
Have you checked yet? |
My apologies for the late reply, and thanks for the ping @PeculiarProgrammer! It looks like your patch works, except for one thing: the main video seems to be frozen. When I check out the main ( However, on your branch, the video is stuck at some frame, and skipping the slide does not change anything. The info window does update correctly. Do you also observe this bug? I am using the |
I can't seem to replicate that. I was also using the |
Maybe, I had some issues when upgrading to Ubuntu 24.04, also setting CUDA libraries (which could have broken some QT video-related features I think), and only I will see when I have more time to see if I can first fix installation issues, to later verify that this patch doesn't introduce new bugs. |
I am currently testing this on Ubuntu (22.04.3) and found that the slides are freezing on both Edit: I have since found the error occurring inconsistently. It seems to happen most frequently when the full screen flag is given (either branch). |
Yeah, it is a bit of a curse that changing Qt versions just seems to break the presenter, while there is nothing documented about that releases that could help us anticipate this. I will see what I can do, but it is hard to maintain support for Qt :-/ |
Fixes Issue
Closes #327
Description
--hide-info-window
argument now accepts three options: auto, always, and never. Auto hides the info window if there is only one monitor.Check List
Check all the applicable boxes:
Note to reviewers
In full-screen mode prior to this, the info window would not be in full screen. It turns out that the method putting the info window into full-screen was being executed prior to the window appearing, so it wouldn't take effect. I fixed this by making the info window full-screen in the player-window's scope instead. Noting this because the change seems unnecessary otherwise.