# \[fullscreen()\] full screen problem

**URL:** <https://discourse.processing.org/t/fullscreen-full-screen-problem/141>\
**Category:** Processing\
**Created:** [May 19, 2018, 7:27pm UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141 "2018-05-19T19:27:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zipity](https://avatars.discourse-cdn.com/v4/letter/z/7cd45c/32.png) [@Zipity](https://discourse.processing.org/u/Zipity)\
**Post date:** [May 19, 2018, 7:27pm UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141/1 "2018-05-19T19:27:56Z")

</div>

Hey guys,

at first, I want to excuse myself for my bad English-level ^^

But let’s start solving my problem 🙂  
When I create a window in fullscreen I have the problem that I can leave that window on the right side of my screen because I have a second screen right next to my “main-screen”. Is there any way how I can fix that problem so that I can’t leave the fullscreen anymore?  
I am happy for any help! ^^

Kind regards Zipity

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [May 20, 2018, 12:33am UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141/2 "2018-05-20T00:33:03Z")

</div>

It’s not exactly clear what you want to do. I’m guessing that you want one sketch that runs on two physical monitors. This is supported.

> **[processing/processing](https://github.com/processing/processing/wiki/Window-Size-and-Full-Screen#using-multiple-monitors)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

In short, try passing `SPAN` to your `fullScreen()` call:

```auto
void setup() {
  fullScreen(SPAN);
  // ...
}

```

If this is not what you want, then I misunderstood you. Try posting an quick diagram showing your end goal.

---

<div class="post-metadata">

**Author:** ![Zipity](https://avatars.discourse-cdn.com/v4/letter/z/7cd45c/32.png) [@Zipity](https://discourse.processing.org/u/Zipity)\
**Post date:** [May 20, 2018, 7:02am UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141/3 "2018-05-20T07:02:41Z")

</div>

Hey TfGuy44,  
thank you for your answer, but SPAN isn’t the solution to my problem.

I hope so it is more understandable.  
 ![explanation](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/1X/24279388c5986e32ceabb07207c8f9ec1e17ab66.png)  
I have two different screens, the red one, and the yellow one. My program is displayed on the red one in fullscreen mode. And my problem is, that I can move from red to yellow with my mouse while my program is in focus. But I want, as long as my program is in focus, that I can’t switch to the yellow screen with moving my mouse.

Kind regards Zipity

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [May 20, 2018, 12:36pm UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141/4 "2018-05-20T12:36:50Z")

</div>

Ah. Okay. No, I don’t think that is possible. At least not easily.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 21, 2018, 5:02pm UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141/5 "2018-05-21T17:02:16Z")

</div>

I believe that level of mouse control isn’t handled by Processing – that is handled by your desktop operating system (what is your OS?). Processing can hide your mouse pointer and simulate its own with cursor commands, but I don’t believe it can trap the mouse.

You could however create a two-screen-spanning Processing application with content in each screen (in spanning fullscreen mode) and then only allow interaction with one half.
