<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks, and I agree it makes no sense; but it was just some behaviour I noticed (oddly enough, the same problem didn't occur with a Button which was draggable but I didn't investigate further).</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Anyway, I made the MenuBar draggable <i>initially</i> so the empty space to the right of it was draggable.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">A better solution is to just to use a HBox instead with a non-draggable MenBar and draggable spacer Region. The downside there is the previously-available resize cursor gets lost over the MenuBar part though (i.e., what we're discussing in another thread).</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Kind Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Cormac</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 2 Jan 2026 at 13:05, Michael Strauß <<a href="mailto:michaelstrau2@gmail.com">michaelstrau2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I've noticed this behaviour as follows with a HeaderBar stage and MenuBar.<br>
><br>
> If you make the JFX window lose focus, but still keep it visible, note the Menu items are responding to mouse hovers. But the first click is always ignored (i.e., no menu shown). This can be more frustrating than it may sound, when dealing with a lot of popups and secondary window hopping, etc. I assume this is not limited to MenuBar either.<br>
><br>
> Example and code below. I will browse to Notepad to lose focus. The red circle you see is a click, see how it requires two clicks for the menu to appear when coming back from Notepad. Note this is not the behaviour for "Normal Menu", a menu not inside HeaderBar.<br>
<br>
<br>
You've set an interactive element (the MenuBar) to be draggable,<br>
that's the source of problem. I don't think that it's worth supporting<br>
the specific scenario of click activation, as you'll soon run into<br>
even more problems (for example, you can drag away the window under an<br>
open menu.<br>
<br>
Interactive draggable elements is simply not a supported<br>
configuration. Maybe I should explicitly point this out in the<br>
documentation.<br>
</blockquote></div>