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

Reload window-rules on config change #877

Merged
merged 4 commits into from Nov 25, 2020
Merged

Reload window-rules on config change #877

merged 4 commits into from Nov 25, 2020

Conversation

marcusbritanicus
Copy link
Contributor

This PR enables the window-rules plugin to auto-reload all the rules when config file is modified without having to restart wayfire.

wf::lexer_t _lexer;

wf::signal_callback_t _created;
wf::signal_callback_t _maximized;
wf::signal_callback_t _unmaximized;
wf::signal_callback_t _minimized;
wf::signal_callback_t _fullscreened;
wf::signal_callback_t reload_config;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small thing: wf::signal_callback_t is deprecated, new code should use wf::signal_connection_t (and also whenever possible, please initialize lambda as soon as you declare it, I think it should be possible here).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. I will make changes and make a commit when I'm a little free. I more or less copied the code from commands plugin.

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise from the comment I left.

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ammen99 ammen99 merged commit c515d40 into WayfireWM:master Nov 25, 2020
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.

None yet

2 participants