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

xdo_get_window_location uses the X11 Screen struct instead of the screen index #4

Open
KoFish opened this issue May 22, 2012 · 2 comments

Comments

@KoFish
Copy link
Contributor

KoFish commented May 22, 2012

Other functions dealing with screens in libxdo uses only the integer index of screens while xdo_get_window_location returns X11's Screen structure, and only if the caller wants it. This breaks the convention used otherwise in the library.

@jordansissel
Copy link
Owner

I think I prefer returning a Screen (for all functions), do you have a preference?

@KoFish
Copy link
Contributor Author

KoFish commented May 22, 2012

My life becomes much simpler if all functions returns the index of the screen. Anytime I need a Screen I can do that Xlib call (XScreenOfDisplay I assume) rather than always having to deal with a pointer I don't need.

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

No branches or pull requests

2 participants