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

Resize direction function doesn't work #881

Closed
wenpengy opened this issue Aug 25, 2023 · 3 comments
Closed

Resize direction function doesn't work #881

wenpengy opened this issue Aug 25, 2023 · 3 comments
Labels
skip:changelog Issue/PR should skip CHANGELOG type:bug Something's broken!
Milestone

Comments

@wenpengy
Copy link

Thanks for reporting your bug here! The following template will help with
giving as much information as possible so that it's easier to diagnose and
fix.

Upfront Information

Please provide the following information by running the command and providing
the output.

  • Fvwm3 version (run: fvwm3 --version)

fvwm3 1.0.7 (released)
with support for: ReadLine, XPM, PNG, SVG, Shape, XShm, SM, XRandR, XRender, XCursor, XFT, NLS

fvwm3 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of fvwm under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

  • Linux distribution or BSD name/version

OS: Gentoo Linux x86_64

  • Platform (run: uname -sp)

Linux Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz

Expected Behaviour

What were you trying to do? Please explain the problem.

I want to resize the window, but the coordinates of the upper left corner remain the same, so I add the "direction SouthEast" parameter after the resize command.

Current resize direction SouthEast w+100p w+100p

Actual Behaviour

The window resize w+100p w+100p. However, the window extends from the center to the four sides , and the coordinates of the upper left corner is changed.

@wenpengy wenpengy added the type:bug Something's broken! label Aug 25, 2023
@ThomasAdam
Copy link
Member

Hi @wenpengy

In testing this using xterm, your command is working how I would expect it to -- as in, the NW corner of the window remains where it is, and the window grows in a SE direction.

For the window you're using, can you run the command xprop on it, and send me the output? I'm specifically interested to know if the WM_NORMAL_HINTS(WM_SIZE_HINTS) XAtom contains a window gravity property.

For this specific window, it might be worth you looking at the Style options of::

  • UseGravity
  • IgnoreGravity

To see if that changes anything for you,

@wenpengy
Copy link
Author

Thank you!

Following your tips, I tested other program windows and they worked fine. The window program that doesn't work is kitty. Here is the xprop output of kitty: WM_NORMAL_HINTS(WM_SIZE_HINTS): window gravity: Static.

I tested style options of UseGravity and IgnoreGravity. However, the window still extends from the center to the four sides. The bug should be caused by the kitty program itself.

Thanks again.

@ThomasAdam
Copy link
Member

Right. With Static gravity, fvwm is doing exactly what it can. This is not a fvwm bug.

@ThomasAdam ThomasAdam added this to the 1.0.8 milestone Aug 26, 2023
@ThomasAdam ThomasAdam added the skip:changelog Issue/PR should skip CHANGELOG label Aug 26, 2023
@ThomasAdam ThomasAdam closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip:changelog Issue/PR should skip CHANGELOG type:bug Something's broken!
Projects
None yet
Development

No branches or pull requests

2 participants