-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
refactor fullscreen #7104
refactor fullscreen #7104
Conversation
modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp
modified: src/events/Windows.cpp
|
should work now |
Yep, all good |
Ok I might be schizo but could this PR have broken anything related to cursors? |
Never mind, it's probably some random commit |
modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp
should be finished and ready for review now |
modified: src/config/ConfigManager.hpp
modified: src/desktop/Window.hpp
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.
yabba dabba doo
Please allow toggling fullscreenstate if it's already enabled for more convenient, like fakefullscreen used to be. |
|
Is it's work with windowrule?
|
fakefullscreen = fullscreenstate 0 2 (or 2 0 depending on which fake fullscreen) |
|
I try fullscreenstate 0 2 and it works at localsend(and most app) And i found another problem with the windowrule to set it fakefullscreen, i can't manual toggle it by dispatcher like |
no |
yeah that doesn't work because current internal state is already 0 |
rule: 0 2 rule: 0 3 and AppFlowy weird with any combination |
I'll see why 1st one doesn't work and some other weird cases later |
Changing the fullscreen data type from bool to int appears to have been propagated to the socket data structures, making this a breaking change for all external socket clients, and tracking this change down was difficult due to it being marked as an internal refactor in the changelog. I know it's not always going to be possible, but it would be preferable from a consumer viewpoint to avoid data type changes unless absolutely necessary since it has a flow-on effect for all program logic that consumes the value - a new field might have been introduced (e.g. |
Thank you |
Refactors fullscreen to:
Introduces
syncFullscreen
to allow enabling and disabling wether the internal and client's state should be the same.Introduces new dispatcher
fullscreenState X Y
whereX
andY
set the internal and the client's fullscreen state respectively (-1
to not alter,0
for none,1
for maximized,2
for fullscreen,3
for maximized and fullscreen) (using this dispatcher will set value above false).It's ready for testing and should be fully functional, but still needs some clean up of unused stuff.
should fix #6562
closes #2662