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
Conversation
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; |
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.
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).
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.
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.
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.
LGTM otherwise from the comment I left.
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.
Thanks!
This PR enables the
window-rules
plugin to auto-reload all the rules when config file is modified without having to restart wayfire.