-
Notifications
You must be signed in to change notification settings - Fork 31
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
[BUG] Fakefullscreen: some youtube not scaling properly to the window #89
Comments
I think this is one that is fairly straightforward to answer. You are using a browser and you press F11 to make it go into fullscreen. It doesn't matter which browser you are using as they all pretty much behave the same way in this context. When the browser goes into fullscreen it naturally assumes that the entirety of the screen will be at its disposal; it works like that in Gnome and KDE after all. As such the fullscreen rendering in the browser is scaled according to the size of the screen. The main thing that the fakefullscreen patch does is to remove the lines of code that resizes the window when it goes into, and out of, fullscreen - as such allowing the window to remain tiled while the content goes into fullscreen. The reason why the issue corrects itself when you change I believe that we addressed issues like this in the fullscreen-compilation patch, but in the case of a plain resizeclient(c, c->x, c->y, c->w, c->h); Semi-related; if you mainly use fake fullscreen in the context of browser windows playing YouTube videos for example then you don't actually need the patch for dwm. A better experience, imho of course, is to use the "app" or "kiosk" mode of the browser. This is where the browser opens a URL in kiosk mode which means that it opens a standalone window that is fullscreen (i.e. no bar, tabs or buttons) and it behaves like fake fullscreen does. So I can have simple scripts such that I open dmenu and start "youtube" and it will open a dedicated fake-fullscreen browser window on the YouTube home page. I can show you how I have that set up if you are interested. |
I have added the line, recompiled and It worked like a charm, thanks you brother. you are amazing. |
After I added the line, i noticed a weird behaviour, the window size gets smaller each time i toggle app fullscreen 02Feb01.05.07.am.mp4the window becomes smaller each time i full screen. |
Ah, I think that the width and height passed to So something like: resizeclient(c, c->x, c->y, WIDTH(c), HEIGHT(c)); or resizeclient(c, c->x, c->y, c->w + 2 * c->w, c->h + 2 * c->bw); |
I think you meant |
I think it also wants the gapps, i don't know the pointers -> something for them? :/ I'm new to C |
|
It may very well be that the gaps are interfering. These kind of issues are also typical with the noborder patch. Looking at the fakefullscreen patch: we have that the original code did have a resizeclient call when exiting fullscreen. It was also accompanied by an If you have your build available somewhere then I can have a closer look. |
It worked finally: resizeclient(c, c->x, c->y, c->w - gappx, c->h - gappx);
arrange(c->mon); Edit: Actually this fixed it: arrange(c->mon) Does this approach have any downsides? |
Having an arrange call in there shouldn't have any downsides that I can think of. But I am thinking that if the uselessgap patch is indeed interfering then it may result in other subtle bugs. It sounds like the gap adjustment for the client ends up being stored in Worth noting that |
exactly, so is useless gaps bugged? |
Having looked at the uselessgap patch(es) I am inclined to say yes. I think for the most part that patch alone will not cause a lot of issues, but there are a few patches that call Another minor side effect the patch may have is that the gaps are applied after size hints have been accounted for, so when the gaps are applied the window may have a size that does not adhere to the desired size hints. Highly unlikely to make a difference in practice given that most people will be setting the |
How to reproduce:
Like this:
expected behavior:
for the video to be scaled properly to the window
workaround:
any update to dwm fixes this, like for example increasing the master stack number, or toggling dwm fullscreen.
Here is a video of the problem.
01Feb03.00.57.am.mp4
What i think is going on
I have no idea.
I use the following patches
& thanks a lot for all your work.
it also happens for the browser itself,
-> the screen will be cut off
The text was updated successfully, but these errors were encountered: