-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Remove corner mask in favor of rounded background corners #1846
Conversation
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.
So the only place you notice this afaict is like fullscreen apps. Which I'm fine with fullscreen apps figuring out their own corners. This looks good to me! I'm happy if @lenemter is happy :)
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.
You also need to deprecate the gsettings keys the plugin used
@lenemter done! |
For some reason windows are still getting clipped at corners and corners stay black even if I change background color to the old gray one. So nothing has changed for me. @leolost2605 Could you revert the change to the background color please? The color is still shown when switching workspaces and black looks bad here. |
I think that's because the plugin isn't actually uninstalled when you install the branch so it's still there. I tested it by disabling the plugin 🤷
Ah right I almost thought I might have missed a use :) Will change it |
@leolost2605 You're right! I removed it and it started working as expected. However, with gray background color the corners are gray as well. |
@lenemter this should be fixed now :) |
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.
Nice! Using background_color
is a good solution but now the black corners are visible during workspace switch animation. To fix this you can change their color to transparent when animation starts.
You mean by workspace switch switch via touchpad swipe/super + left/right? |
@leolost2605 Yes It's more obvious if I change system bg to white: |
@lenemter ok so I'm guessing this has something to do with whether you have workspaces on primary only. Btw how do I disable this cause I didn't find it anywhere? Is there a dconf key somewhere? I pushed your mentioned fix, couldn't test it though. Also if you have a better name for the method just change it I just couldn't figure out a good name :) |
@leolost2605 it's /org/gnome/mutter/workspaces-only-on-primary. I don't have second monitor, so I don't know how it would affect it |
@leolost2605 it crashes wm for me
|
@lenemter IIUC if workspaces_on_primary_only is enabled the workspace switch only uses the backgroundmanager of the primary/only monitor. But if it's disabled it uses the whole backgroundcontainer (where the black background is set) no matter whether you have one or multiple monitors. Also the crash should be fixed now |
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.
Looks very good. One last comment
Done! Btw is workspaces on all monitors something we might want to support in the future? Because currently it's entirely broken with multiple monitors |
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.
🚀
@leolost2605 Personally, I'd like to add support for #26 when/if mutter implements this, and don't find workspaces on all monitors useful. Maybe @danirabbit has an opinion on this? |
By making the system background entirely black we can remove the maskcorners plugin since we already round the background corners.
The only difference is that now windows or anything that's in the corner doesn't get rounded so I guess that's a design question 🤷