-
Notifications
You must be signed in to change notification settings - Fork 770
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
Reintroduce aspect ratio logic for tiling containers #3810
base: next
Are you sure you want to change the base?
Conversation
After this commit, mpv aspect ratio hints are honored as well (unlike 4.16). Ignoring mpv aspect ratio hints was a useful feature: mpv could display OSD outside of the movie frame. And this was consistent with i3 behavior regarding "resize increment" hints for tiled windows. I've checked it using
|
Thank you very much! I'll investigate. |
6b8b3dc
to
bf5365f
Compare
I think that the problem with mpv is that before 29f2510 i3 did not save the aspect ratio normal hints in I don't think there is any reasonable way to correct that. I much prefer to not introduce problems to the more popular mpv player in order to fix a bug in mplayer. @Airblader any other ideas? |
In my understanding the bug lies with mplayer, right? As such I wouldn't try to work around its issues in i3, particularly if it causes issues with other clients (more popular or not). |
In this case, I don't know which is the "correct" behavior. i3 exposes a bug in mplayer but it would be possible for i3 to misbehave according to the standard. According to the comment by Michael: Lines 67 to 75 in f397698
the spec is not clear about fullscreen windows (and certainly not about "tiling" windows) but in this specific case I feel that we should ignore the aspect ratio hints (as in 4.17) like we do for the rest of the normal hints. |
I'm suffering from the issue this PR is fixing. I was wondering if there are plans to continue the work and merge this fix or a different one? |
I will gladly make the changes if we reach an agreement.
@stapelberg do you have an opinion on this?
…On Mon, Jun 8, 2020, 12:20 Sawyer X ***@***.***> wrote:
I'm suffering from the issue this PR is fixing. I was wondering if there
are plans to continue the work and merge this fix or a different one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3810 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMCZPWAP63HEJONHQHHTWTRVS3OJANCNFSM4I4JQOLA>
.
|
Could you summarize what the question is please? I have read this issue, but it’s not 100% clear to me. In particular, #3810 (comment) says that with your latest commit, both mpv and mplayer do work as expected (isn’t that the desired outcome?), or am I reading this wrong? PS: Hey @xsawyerx! I remember reading your name many times when I was working with Perl. Thanks for all your work, and enjoy i3! :) |
I don't know if I'm phrasing it well, but, when using mplayer, the window area, past the video border itself, does not stay black. Instead it reflects other windows backgrounds (like the workspace I moved from, the last image on the screen in full screen, etc.).
I had missed that. I'm certain I'm not using the latest version, so I'll first upgrade and then check again. Apologies if I added more noise to a resolved issue.
I've been a very happy i3 user for a long time now. I think it is I who owes you a thank you. :) |
I think this commit is not merged, so I'm not sure upgrading from 4.17.1 (current stable Ubuntu) to 4.18.1 (official stable) will fix the issue. Maybe I'm missing something. |
Correct, the commit in question is pending in this very PR. If you want to test, check out this PR and build i3 yourself. You can use |
"Honored" for mpv is not the optimal behavior as explained because subtitles can be placed in the dark areas that appear when the aspect ratios are not honored. I wonder if mpv should report different aspect ratios here because it clearly does not need/want to be that restricted. |
Okay, so it’s not optimal because a welcome side-effect of ignoring the aspect ratio hints is no longer triggered. But, it fixes behavior otherwise. Did I get this right? I’m okay with going ahead with the fix, and requiring people to take up mpv usability improvements with mpv upstream :). Given that mpv is an active open source project, we can fix this the right way instead of having to accept a workaround. |
Ok, I will contact the mpv upstream |
Fixes #3795