I can reproduce this bug in one direction. If I maximize on my smaller screen 
and then shift the window to my larger screen it doesn’t resize to fill the 
screen. Windows still thinks it’s maximized it’s just too small.

I don’t see a bug in the other direction. If I maximize on my larger screen and 
shift the window to my smaller screen the window resizes as expected. If I 
shift it back to the larger screen it returns to the larger size.

From what I can tell this one-sided behavior is coming from the OS and not 
JavaFX. Feel free to enter a ticket and I’ll take a look.

> On Feb 16, 2026, at 1:49 PM, Thiago Milczarek Sayão <[email protected]> 
> wrote:
> 
> I think windows will let you resize a maximized window, which is weird.
> 
> The logical behaviour would be to unmaximize the window when moved.
> 
> Em seg., 16 de fev. de 2026 às 14:32, Christopher Schnick <[email protected] 
> <mailto:[email protected]>> escreveu:
>> On Windows, you can move a window (even if maximized) to another screen 
>> with Win+Shift+Arrow key. When doing this, a JavaFX stage does not 
>> resize itself to the new screen if the other screen has a different 
>> size. You get stuck with an application where the titlebar looks like it 
>> is in fullscreen, but it does not fill the screen.
>> 
>> I would suspect there is some kind of rule built into some JavaFX part 
>> that internally prevents resizing maximized windows? Because I have only 
>> seen this happen with JavaFX windows so far.
>> 
>> I can open a ticket for this, but I would have no idea how to fix this 
>> issue.
>> 

Reply via email to