# fullScreen(P3D, SPAN) with 2 Monitors not working in Ubuntu

**URL:** <https://discourse.processing.org/t/fullscreen-p3d-span-with-2-monitors-not-working-in-ubuntu/40659>\
**Category:** Coding Questions\
**Created:** [January 20, 2023, 12:04pm UTC](https://discourse.processing.org/t/fullscreen-p3d-span-with-2-monitors-not-working-in-ubuntu/40659 "2023-01-20T12:04:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mischmeisterm](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mischmeisterm](https://discourse.processing.org/u/mischmeisterm)\
**Post date:** [January 20, 2023, 12:04pm UTC](https://discourse.processing.org/t/fullscreen-p3d-span-with-2-monitors-not-working-in-ubuntu/40659/1 "2023-01-20T12:04:17Z")

</div>

Trying to get a proper fullscreen P2D/P3D sketch working on Ubuntu 22.04 with two monitors…

fullScreen(SPAN);

- uses both monitors (but doesn’t hide dock and activities bar)
- uses the very slow default renderer

fullScreen(P3D);

- uses only one screen (is the only variant that properly hides dock and activities as well)

fullScreen(P3D, SPAN);

- uses only one screen (and doesn’t hide dock and activities bar)

what i’d need:  
P3D renderer spanning both screens without any window decorations and desktop bars  
is there anyhting i am missing, or any hack/workaround to achieve this on linux or should i go back to windows? tried googling a bit but couldn’t find a working solution

thanks!

---

<div class="post-metadata">

**Author:** ![mischmeisterm](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mischmeisterm](https://discourse.processing.org/u/mischmeisterm)\
**Post date:** [January 20, 2023, 3:28pm UTC](https://discourse.processing.org/t/fullscreen-p3d-span-with-2-monitors-not-working-in-ubuntu/40659/2 "2023-01-20T15:28:49Z")

</div>

found a workaround for now…

setup looks like this:

```auto
void setup () {
  size (3840, 1080, P2D);  
  surface.setLocation(0,0); 
  exec("/usr/bin/xprop", "-name", getClass().getName(), "-format", "_MOTIF_WM_HINTS", "32c", "-set", "_MOTIF_WM_HINTS", "2");

```

i just put the sketch in the top left corner, remove the window decorations with the xprop command and i disabled the desktop bars manually. the setLocation(0,0) doesn’t actually work for some reason (maybe because the window initially stretches over the desktop border at some point (it works with smaller windows))
