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

Allow access to Clients by ID or selection function #16

Closed
sminez opened this issue Jul 25, 2020 · 0 comments
Closed

Allow access to Clients by ID or selection function #16

sminez opened this issue Jul 25, 2020 · 0 comments
Labels
core Changes to penrose core enhancement New feature or request

Comments

@sminez
Copy link
Owner

sminez commented Jul 25, 2020

Similar to #15 , penrose should expose a way for users to get reference to specific Clients either by ID or Selector:

pub fn client(&self, selector: Selector<Client>) -> Option<&Client>;
pub fn client_mut(&mut self, selector: Selector<Client>) -> Option<&mut Client>;
pub fn clients_where(&self, selector: Selector<Client>) -> Vec<&Client>;
pub fn clients_where_mut(&mut self, selector: Selector<Client>) -> Vec<&mut Client>;
@sminez sminez added core Changes to penrose core enhancement New feature or request labels Jul 25, 2020
@sminez sminez closed this as completed Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to penrose core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant