ursina icon indicating copy to clipboard operation
ursina copied to clipboard

Window position isn't saved when moved

Open a2cy opened this issue 3 years ago • 3 comments

Code: `from ursina import *

app = Ursina(borderless = False)

def input(key): window.size = window.size #this is just to update the window

app.run()`

Run it, move the window and press a key, the window will move back to the starting position.

I couldn't find an event for that so i thought of solving it by checking if the current position is diffrent then the position in the frame before but it seems very inefficent to me.

a2cy avatar Sep 23 '22 23:09 a2cy

I guess, 'window.size = window.size' are probably two different variables. one is the default value and the other the current variable.

stutsanks avatar Oct 04 '22 08:10 stutsanks

tried explaining it a bit better

a2cy avatar Oct 04 '22 09:10 a2cy