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

wrs absolute mode broken #33

Closed
Ferdi265 opened this issue Mar 7, 2016 · 1 comment
Closed

wrs absolute mode broken #33

Ferdi265 opened this issue Mar 7, 2016 · 1 comment

Comments

@Ferdi265
Copy link

Ferdi265 commented Mar 7, 2016

When using wrs in absolute mode sometimes (a lot of the time) the size of the window changes to a size completely different from the desired size (usually a lot smaller, most of the time not even the correct aspect ratio).

I can reproduce this most of the time with wrs -a 500 500 $some_window_id. Notice how the resulting window is not square.

Tested with urxvt on a 1080p screen without a WM running.

Context of finding this bug:

I am currently writing wrappers for wmv and wrs that move the mouse pointer with them to fix some of the inconveniences of the detail fix. The wrs wrapper also introduces arguments that make it possible to keep the center of the window in the same place after a resize or resizing to the left. The wmv wrapper is mostly finished, while the wrs wrapper still needs work. In particular that is some fixes for center-keeping resizes on the right edge of the screen and absolute resizing (should work in theory, but discovered this wrs bug)

@z3bra
Copy link
Contributor

z3bra commented Mar 13, 2016

As discussed on the pull-request #34, this is the expected behavior.
The arguments given in absolute mode are the absolute coordinates of the bottom right hand-corner of the window on the root window. In other words, resize the window up to this coordinates.
The main goal here is to be able to resize the window with the mouse using the following command:

wrs -a $(wmp) ${wid}

EDIT: In case you want to resize a window by giving it a fixed width and heigh, use wtp instead:

wtp $(wattr xy ${wid}) ${width} ${height} ${wid}

@z3bra z3bra closed this as completed Mar 13, 2016
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