-
Notifications
You must be signed in to change notification settings - Fork 598
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
Fullscreen applications doesn't work #3844
Comments
I'm also experiencing the same issue with the latest update. In addition to the fullscreen issue @musjj reported I'm seeing this issue with maximizing vertically & horizontally as well. Awesome version info albeit not sure what the
|
Hello, Can you confirm this issue also happens with the default Also, can you try
|
Interesting, when the user config ( |
Okay, I think my mistake was that I used the wrong default config (copy-pasted from the stable documentation) as my base config. I rebuilt my config based off the |
Okay, I narrowed down the cause. I had this in my config: client.connect_signal("property::floating", function(c)
if c.floating then
c.ontop = true
else
c.ontop = false
end
end) For some reason this caused fullscreen to not work. Am I doing something wrong here or is this a bug? |
@musjj i having a similar problem on (only) one of my machines, the fastest one. i suspect there is some race condition in handling of client signals or states |
btw does it happen for you only with luajit? |
@actionless will test for myself later today/tomorrow. Out of curiosity I started looking at the possibility for adding a keybind that would restart awesome with the fallback config explicitly. Are you aware if this is achievable via a keybind or not? Edit: |
i think it's not possible i usually just renaming rc.lua in such case you also could use btw i checked regarding luajit - it seems to be not the case so, let me know regarding your cpu model, to get potentially more info |
Hey, I just started having this problem as well, but only after recently updating. Like the original issue, Fullscreen only works in floating mode. The only thing I think that changed since last time I updated that could cause the issue is this commit: 28381d2 I will build it myself before this commit and see if it works again. |
oh, that's quite interesting - i double-checked the patch - and the fix is indeed correct, just the initial code was broken initially - it was trying to check if client is floating - and if it's not floating - block geometry request however that check was always broken (and always passing because check so i think the right thing would be to remove that check for floating at all, or modify maximize and fullscreen handlers to not use geometry permission |
thanks for helping to debug @Pikabyte i found the correct fix |
Yep, just tested the commit before that patch. It works fine there. |
…ients if it was requested by awesome's own fullscreen and maximize handlers (fixes: awesomeWM#3844, awesomeWM#3834)
@Pikabyte you can also test the final code in the PR above ⬆️ |
It does seem to work! |
I tried the patch, unfortunately it didn't work. I used the default client.connect_signal("property::floating", function(c)
if c.floating then
c.ontop = true
else
c.ontop = false
end
end) But it still didn't work. Removing the snippet made it work. This is my hardware, if it helps:
|
@musjj try adding print()-s to that function to debug which code branches are getting executed and which aren't to understand why it's not happening - at this point i can't reproduce it anymore, so it's all on you |
It looks like that both branches gets executed, when you activate fullscreen. I'm not really sure why it happens though. I tried adding a guard like this: if c.maximized then
return
end But both branches still gets executed.
Did you try my snippet? Looks like that this might be relavant: #2698 |
Solved it, the correct guard is: if c.fullscreen == true then
return
end |
oh, apparently that's this - #2698 (comment) you could also check c.floating itself to be either |
i thought i had the same in my config, but it was slightly different when i looked for it: |
Right, I tried to check the values for It looks like that messing with the client options during
Yeah, a rule won't work for my case, because I want it to apply dynamically. I think rules only apply when the window first spawned. |
what about checking |
I use LightDM, and have multiple session to start Awesome with different parameters/config/versions. For example, I have this config to start Awesome from my local git clone
|
Yea that's one manner of doing it but requires a logout/login. Which is what I was trying to avoid. Ended up just defining a pretty simple shell alias to ease the process without relogging myself. swap-awesome-config() {
swap ~/.config/awesome/rc.lua ~/.config/awesome/rc.lua.inactive
echo 'awesome.restart()' | awesome-client
} |
damn it, stop mentioning me when quoting |
Output of `awesome --version`:
How to reproduce the issue:
tile
awesome-client <<<"client.focus.fullscreen = true"
Actual result:
Fullscreen doesn't work. If you set the window to floating mode before fullscreening, it will work just fine:
Expected result:
Fullscreen should just work.
The text was updated successfully, but these errors were encountered: