# Drag Popup Outside of Project

**URL:** <https://forum.inductiveautomation.com/t/drag-popup-outside-of-project/80303>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [October 10, 2023, 7:55pm UTC](https://forum.inductiveautomation.com/t/drag-popup-outside-of-project/80303 "2023-10-10T19:55:09Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 1, 2024, 9:51pm UTC](https://forum.inductiveautomation.com/t/drag-popup-outside-of-project/80303/16 "2024-03-01T21:51:53Z")

</div>

What I'm running into now is that with the project open in fullscreen mode, opening a new desktop is in fullscreen mode. How can I make it windowed mode for the new desktops?

Thinking I could do something with [this](https://forum.inductiveautomation.com/t/max-window-size-in-different-monitors/32030/3) script after opening the new desktop?

```auto
from javax.swing import JFrame

window = system.gui.getParentWindow(event)
while not isinstance(window, JFrame):
	window = window.getParent()
if window.isUndecorated():
	# Switch to windowed mode.
	window.dispose()
	window.setUndecorated(False)
	window.setExtendedState(JFrame.NORMAL)
	# Restore previous window size and location, if available.
	try:
		normalW = event.source.getClientProperty('normalW')
		normalH = event.source.getClientProperty('normalH')
		normalX = event.source.getClientProperty('normalX')
		normalY = event.source.getClientProperty('normalY')
		window.setSize(normalW, normalH)
		window.setLocation(normalX, normalY)
	except:
		pass
	window.setVisible(True)
else:
	# Store window size and location for restore.
	event.source.putClientProperty('normalW', window.size.width)
	event.source.putClientProperty('normalH', window.size.height)
	event.source.putClientProperty('normalX', window.x)
	event.source.putClientProperty('normalY', window.y)
	# Switch to full screen mode.
	window.dispose()
	window.setUndecorated(True)
	window.setExtendedState(JFrame.MAXIMIZED_BOTH)
	window.setVisible(True)

```

Just not sure how to use this with the new desktop and window

---

_[View the full topic](https://forum.inductiveautomation.com/t/drag-popup-outside-of-project/80303)._
