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 bounds information in the macOS implementation #13

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

albinekb
Copy link
Contributor

@albinekb albinekb commented Jun 2, 2017

On linux we could use xwininfo

$ xwininfo -id 0x340000a

xwininfo: Window id: 0x340000a "hyper@hyper-virtual-machine: ~"

  Absolute upper-left X:  65
  Absolute upper-left Y:  52
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 732
  Height: 410
  Depth: 32
  Visual: 0x76
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x3400009 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +65+52  -3+52  -3-138  +65-138
  -geometry 80x24--7+14

@sindresorhus
Copy link
Owner

@albinekb Would you like me to merge this or should we wait on the Swift rewrite?

@albinekb
Copy link
Contributor Author

Let's do the swift rewrite 👍 I can PR it tonight.

@albinekb albinekb closed this Jun 17, 2017
@sindresorhus sindresorhus deleted the add-bounds branch July 23, 2017 16:09
@sindresorhus sindresorhus restored the add-bounds branch November 1, 2017 16:40
@sindresorhus sindresorhus reopened this Nov 1, 2017
@albinekb
Copy link
Contributor Author

albinekb commented Nov 1, 2017

Let's merge this now to get the info, and I'll start working on a swift rewrite with Codeable.

@sindresorhus sindresorhus changed the title 🎉 Add bounds information Add bounds information in the macOS implementation Nov 1, 2017
@sindresorhus sindresorhus merged commit aef6bb9 into master Nov 1, 2017
@sindresorhus sindresorhus deleted the add-bounds branch November 1, 2017 18:31
sindresorhus added a commit that referenced this pull request Jan 1, 2018
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