Skip to content

Conversation

yuyuyureka
Copy link

@yuyuyureka yuyuyureka commented Jan 14, 2025

Allows other programs to depend on the cosmic_comp library crate and start a cosmic-comp in their process by calling cosmic_comp::run(). Customization parameters can be added to run(). Note that the interface of the cosmic_comp library crate is not stable in any way and might change anytime.

Also adds a first use of the new hooks system, which allows customizing
cosmic-comp at compile-time.
In this case, the view() function of CosmicWindow / CosmicStack is
hooked and the hook can change what is rendered as the header bar.

foo

@ids1024
Copy link
Member

ids1024 commented Jan 15, 2025

I'm not sure exactly why you would want this, instead of just spawning cosmic-comp as a subprocess.

@yuyuyureka yuyuyureka force-pushed the cosmic-comp-library branch from 9bb96cd to 5f0294a Compare April 13, 2025 19:51
@yuyuyureka
Copy link
Author

Hi @ids1024, I'm sorry for the confusion. You are right, standalone the change was not useful as it was.

The new state should reflect better what I expect from this change.

@yuyuyureka yuyuyureka force-pushed the cosmic-comp-library branch from 87c2e71 to 815d2d7 Compare April 14, 2025 16:45
Allows other programs to depend on the cosmic_comp library crate and
start a cosmic-comp in their process by calling `cosmic_comp::run()`.
Later, customization parameters can be added to `run()`.
Note that the interface of the cosmic_comp library crate is not stable
in any way and might change anytime.

Signed-off-by: Yureka <[email protected]>
This is a first use of the new hooks system, which allows customizing
cosmic-comp at compile-time.
In this case, the view() function of CosmicWindow / CosmicStack is
hooked and the hook can change what is rendered as the header bar.

Signed-off-by: Yureka <[email protected]>
@yuyuyureka yuyuyureka force-pushed the cosmic-comp-library branch from 815d2d7 to 1fa3bd6 Compare April 15, 2025 07:31
@yuyuyureka yuyuyureka force-pushed the cosmic-comp-library branch from 1fa3bd6 to ecbed1a Compare April 17, 2025 07:11
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.

2 participants