Skip to content
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

[wip] wl: Add CogWlPlatform fullscreen-enter and fullscreen-exit signals #622

Conversation

psaavedra
Copy link
Member

@psaavedra psaavedra commented Oct 23, 2023

Simply the code in CogWlPlatform by adding the "fullscreen-enter" and "fullscreen-exit" signals to notify to the view that the window is being entering or exiting from the fullscreen.

This change is motivated towards the progress of being able to have more than one view.

DEPENDS ON: #629

@psaavedra psaavedra requested a review from aperezdc October 23, 2023 11:41
@psaavedra psaavedra self-assigned this Oct 23, 2023
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-resized-window-and-fullscreen-signals branch 2 times, most recently from 0f63328 to 17c2699 Compare October 23, 2023 19:40
@psaavedra psaavedra changed the title wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView [wip] wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView Oct 23, 2023
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-resized-window-and-fullscreen-signals branch 2 times, most recently from 4ec4284 to df36993 Compare October 24, 2023 07:11
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-resized-window-and-fullscreen-signals branch 3 times, most recently from 3a952e9 to 1b96d92 Compare October 25, 2023 10:57
@psaavedra psaavedra changed the title [wip] wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView Oct 25, 2023
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-resized-window-and-fullscreen-signals branch from 1b96d92 to 3c027d4 Compare October 25, 2023 11:13
@psaavedra psaavedra changed the title wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView [wip] wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView Oct 26, 2023
In the Platform side the fullscreen enter/exit logic was cleaned up,
simplified and encapsulated in the cog_wl_platform_[enter|exit]_fullscreen
functions.

The CogWlPlatform is not responsible of having in consideration the
state of the view. It is limited to do store the previous geometry, to
set the new window geometry and to make the adjustments in the
corresponding shell. Finally, the View associated to the Platform is
notified using the new cog_wl_view_[enter|exit]_fullscreen functions and
relies on the View to do the rest. The CogWlView reacts those notifications
by sending the wpe_view_backend_dispatch_did_enter_fullscreen and
wpe_view_backend_dispatch_did_exit_fullscreen according with the
notification.
Simply the code in CogWlPlatform by adding the "fullscreen-enter" and
"fullscreen-exit" signals to notify to the view that the window is being
entering or exiting from the fullscreen.

This change is motivated towards the progress of being able to have more
than one view.
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-resized-window-and-fullscreen-signals branch from 3c027d4 to 2e961f6 Compare October 26, 2023 09:16
@psaavedra psaavedra changed the title [wip] wl: Decouple the fullscreen logic in CogWlPlatform and CogWlView [wip] wl: Add CogWlPlatform fullscreen-enter and fullscreen-exit signals Oct 30, 2023
@psaavedra psaavedra marked this pull request as draft November 1, 2023 08:55
@psaavedra
Copy link
Member Author

Discarded for now

@psaavedra psaavedra closed this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant