# X11 Window Gravity Attribute

**URL:** <https://discourse.glfw.org/t/x11-window-gravity-attribute/1680>\
**Category:** support\
**Created:** [October 26, 2020, 5:57am UTC](https://discourse.glfw.org/t/x11-window-gravity-attribute/1680 "2020-10-26T05:57:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![myelsukov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/myelsukov/32/454_2.png) [@myelsukov](https://discourse.glfw.org/u/myelsukov)\
**Post date:** [October 26, 2020, 5:57am UTC](https://discourse.glfw.org/t/x11-window-gravity-attribute/1680/1 "2020-10-26T05:57:05Z")

</div>

Hi there!

I wonder, what is rationale of defining X11 Window Gravity attribute as `StaticGravity` ([https://github.com/glfw/glfw/blob/master/src/x11\_window.c#L281](https://github.com/glfw/glfw/blob/master/src/x11_window.c#L281)) as opposed to default `NorthWestGravity`?

`StaticGravity` prevents GLFW windows to be properly moved by the tools like `xdotool`.

Would the maintainers of GLFW consider changing the gravity attribute to the X11 default `NorthWestGravity`?

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [October 26, 2020, 10:15am UTC](https://discourse.glfw.org/t/x11-window-gravity-attribute/1680/2 "2020-10-26T10:15:54Z")

</div>

Hi Michael,

Welcome to the GLFW forum!

You should check out this issue and add a comment I think:

> <https://github.com/glfw/glfw/issues/1182>
>
> More details can be found in kovidgoyal/kitty#279 but the crux of the issue is that triggering maximize-vertical in openbox on a...

Cheers,

Doug.
