# Size() ignored and window goes full screen

**URL:** <https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932>\
**Category:** Processing\
**Created:** [September 11, 2019, 6:32pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932 "2019-09-11T18:32:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![thunderball](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thunderball](https://discourse.processing.org/u/thunderball)\
**Post date:** [September 11, 2019, 6:32pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/1 "2019-09-11T18:32:57Z")

</div>

Hi, I just installed P3 on my desktop, which has two monitors, when running a sketch, my own or an example, the sketch is displayed larger than full screen, I can’t even view the content.

Processing 2 works fine.

Why is it doing this and what is the fix? I didn’t see any solutions when searching

OSX 10.11.6

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 11, 2019, 7:27pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/2 "2019-09-11T19:27:42Z")

</div>

What have you tried?

size (600,400, P2D);

---

<div class="post-metadata">

**Author:** ![thunderball](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thunderball](https://discourse.processing.org/u/thunderball)\
**Post date:** [September 11, 2019, 7:33pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/3 "2019-09-11T19:33:24Z")

</div>

Just the regular `size(600,400);`

Adding `P2D` doesn’t change anything, still goes full screen

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 11, 2019, 8:39pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/4 "2019-09-11T20:39:59Z")

</div>

I am sorry, I am not familiar with OS X.

In Win I’d say update your graphics driver.

Did you try `size(600,400,JAVA2D);`

---

<div class="post-metadata">

**Author:** ![thunderball](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thunderball](https://discourse.processing.org/u/thunderball)\
**Post date:** [September 11, 2019, 8:52pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/5 "2019-09-11T20:52:17Z")

</div>

Same issue, I’ll try on my laptop and see if it’s related to this one machine.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 12, 2019, 8:15am UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/6 "2019-09-12T08:15:28Z")

</div>

can you toggle between full size mode of a window and normal size mode?

There is something like this in Windows

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [September 12, 2019, 8:29am UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/7 "2019-09-12T08:29:56Z")

</div>

Try disconnecting the second monitor and see what happens. Also goto System Preferences and look at the settings for your dual screen setup, it might be it is trying to use both monitors as a continuous desktop,

---

<div class="post-metadata">

**Author:** ![spencerrussell](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@spencerrussell](https://discourse.processing.org/u/spencerrussell)\
**Post date:** [June 19, 2020, 3:14pm UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/8 "2020-06-19T15:14:43Z")

</div>

I’m having this same issue. I’m running a very basic program with the window size specified as 400x120 and when I run the sketch, it opens a window that spans the full resolution of both of my monitors. This is the basic sketch I’m running:

void setup() {  
size(400, 120);  
}

void draw() {  
if (mousePressed) {  
fill(0);  
} else {  
fill(255);  
}  
ellipse(mouseX, mouseY, 80, 80);  
}

I tried the suggestions previously mentioned and none of them worked. Has anyone found a solution to this?

---

<div class="post-metadata">

**Author:** ![ekaggrat](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@ekaggrat](https://discourse.processing.org/u/ekaggrat)\
**Post date:** [January 27, 2021, 8:58am UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/9 "2021-01-27T08:58:58Z")

</div>

i am having the same issue on processing on both windows and mac . i used the latest 3.5.4. It simply wont take any size command… Even the default example files run in full screen … Really terrible . Anyone have this issue solved? both work fine with 2.2.1

system 1: win 10 gtx 1660 corei5 processing 3.5.4  
system 2: macbook pro

---

<div class="post-metadata">

**Author:** ![ekaggrat](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@ekaggrat](https://discourse.processing.org/u/ekaggrat)\
**Post date:** [January 27, 2021, 9:07am UTC](https://discourse.processing.org/t/size-ignored-and-window-goes-full-screen/13932/10 "2021-01-27T09:07:10Z")

</div>

ok found a weird way to fix it. 🙂  
remove the size command and run any sketch. it will default to 100,100  
then add a size command and rerun the sketch… bingo now it sizes the windows to all the sketches run after this
