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

Add WM_CLIENT_MACHINE tag for the group settings #459

Merged
merged 3 commits into from
May 2, 2018

Conversation

inkeso
Copy link
Contributor

@inkeso inkeso commented Apr 19, 2018

This may be beneficial for more users then just me: use WM_CLIENT_MACHINE (as <Group><Machine>foo</Machine>...) , so programs startet from a different host (e.g. ssh -X ...) can be grouped.

src/event.c Outdated
break;
case XA_WM_CLIENT_MACHINE:
ReadWMMachine(np);
changed = 1;
Copy link
Owner

Choose a reason for hiding this comment

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

I think you want a break here?

@joewing
Copy link
Owner

joewing commented Apr 20, 2018

Thanks for implementing this! I can definitely see this as being useful to others.

src/hint.c Outdated
XTextProperty tprop;
char **tlist;
int tcount;

Copy link
Owner

Choose a reason for hiding this comment

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

I think we want something along the lines of the following here:

if(np->machineName) {
   Release(np->machineName);
   np->machineName = NULL;
}

I haven't looked carefully yet, but is machineName getting set to NULL when ClientNode is allocated and freed when deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, i was missing that.

@joewing joewing merged commit 3d66ca9 into joewing:master May 2, 2018
@joewing
Copy link
Owner

joewing commented May 2, 2018

Thanks!

@joewing joewing added this to the Version 2.4.0 milestone May 2, 2018
@inkeso inkeso deleted the wmmachine-tag branch May 7, 2018 12:01
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