# Is setUndecorated() possible?

**URL:** https://discourse.processing.org/t/is-setundecorated-possible/1097
**Category:** Processing
**Created:** [June 19, 2018, 6:27pm UTC](https://discourse.processing.org/t/is-setundecorated-possible/1097 "2018-06-19T18:27:45Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [June 21, 2018, 3:48pm UTC](https://discourse.processing.org/t/is-setundecorated-possible/1097/10 "2018-06-21T15:48:13Z")

</div>

No, I agree with you, and your first answer - overriding `initSurface()` - is the way I do this. Depending on the renderer _and the OS_, `fullScreen()` can set flags on the window that you don’t want and can cause problems. The slightly longer-winded way you posted first is a safer bet. I only use the OpenGL renderers in PraxisLIVE. Interesting these return the window and not the canvas from `getNative()` so I override initSurface like (where wHints is my own config object) -

```auto
protected PSurface initSurface() {
    PSurface s = super.initSurface();
    s.setTitle(wHints.getTitle());
    GLWindow window = (GLWindow) surface.getNative();
    window.setAlwaysOnTop(wHints.isAlwaysOnTop());
    window.setUndecorated(wHints.isUndecorated());
    return s;
}

```

---

_[View the full topic](https://discourse.processing.org/t/is-setundecorated-possible/1097)._
