# Canvas size is wrong on external monitor on Ubuntu 24.04 LTS

**URL:** <https://discourse.processing.org/t/canvas-size-is-wrong-on-external-monitor-on-ubuntu-24-04-lts/45927>\
**Category:** Processing\
**Created:** [March 7, 2025, 2:14pm UTC](https://discourse.processing.org/t/canvas-size-is-wrong-on-external-monitor-on-ubuntu-24-04-lts/45927 "2025-03-07T14:14:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LangdonS](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@LangdonS](https://discourse.processing.org/u/LangdonS)\
**Post date:** [March 7, 2025, 2:14pm UTC](https://discourse.processing.org/t/canvas-size-is-wrong-on-external-monitor-on-ubuntu-24-04-lts/45927/1 "2025-03-07T14:14:28Z")

</div>

I have a Java/Processing app that I am developing on my Lenovo T490 laptop running Ubuntu 24.04 LTS.

I have the canvas size set in the `settings` method to 416x416px

On the laptop’s screen, the drawable canvas is 416x416, which is correct.

However, when I connect my external monitor via HDMI, the total window size is 416x416, meaning the canvas is shorter than it should be because the menubar subtracts from the canvas height!

How do I fix this issue?

 ![Screenshot from 2025-03-07 09-12-33](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/c/c/cceee2641b02c5031fe013f6626790d764d436f7.png)  
 ![Screenshot from 2025-03-07 09-13-53](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/d/8d55b345de302bf762804fa43e892eb6b5108cc8.png)

---

<div class="post-metadata">

**Author:** ![LangdonS](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@LangdonS](https://discourse.processing.org/u/LangdonS)\
**Post date:** [March 8, 2025, 11:39pm UTC](https://discourse.processing.org/t/canvas-size-is-wrong-on-external-monitor-on-ubuntu-24-04-lts/45927/2 "2025-03-08T23:39:56Z")

</div>

Somehow it fixed itself?
