# Allowing sketch to use OS window snap features

**URL:** <https://discourse.processing.org/t/allowing-sketch-to-use-os-window-snap-features/13829>\
**Category:** Processing\
**Created:** [September 5, 2019, 6:22pm UTC](https://discourse.processing.org/t/allowing-sketch-to-use-os-window-snap-features/13829 "2019-09-05T18:22:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [September 5, 2019, 6:22pm UTC](https://discourse.processing.org/t/allowing-sketch-to-use-os-window-snap-features/13829/1 "2019-09-05T18:22:15Z")

</div>

Not really too sure how to categorize this, but is there an easy way to allow the processing application to make use of Windows native snap/maximize feature, or can this be programmed using a simple mouse-pressed function

---

<div class="post-metadata">

**Author:** ![Quillbert1](https://avatars.discourse-cdn.com/v4/letter/q/f475e1/32.png) [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Post date:** [September 6, 2019, 12:53pm UTC](https://discourse.processing.org/t/allowing-sketch-to-use-os-window-snap-features/13829/2 "2019-09-06T12:53:24Z")

</div>

You could use `surface.setResizable(true)` right after `size()` in `setup()`. This allows the sketch to be resized, including the windows snap features.
