Xor
Xor
However, if a delay is added before setVisible(true) of the main window, everything works fine. Edit: Below is a minimal workaround. Not sure why. ``` App.start(() -> { Window window...
> That all sounds good to me. > > I think that registered drag regions is better than a method on Window to begin dragging. It does seem worse in...
@mworzala Do you have some basic thoughts on Menu API design? I would like to implement some working draft first before taking more considerations.
> I would like to have menus! I would even say they are essential. I have no idea on the API design or even scope yet @tonsky I came up...
> There is also the `role` property from Electron for system defined menus which needs to be considered. About the `role` part, macOS seems to recognize "Help" as help menu,...
> > And the tricky part is, Windows attach menus to window, instead of App. I haven't came up with some good abstraction over this yet. > > In other...
Forcing menus to be window specific should mostly work, which is the same as what AWT does. However, this approach has a few drawbacks: 1. When switching to a window...
The callback approach has one crucial benefit, that the developers don't need to separate menu declarations and actions, and don't need to write ugly `switch` to identify menus. The other...
> What I don’t like about this approach is that you have to “undo” behavior you don’t need (remove/replace default menu) instead of doing what you need (adding menus). It’s...
Another window/mac menubar misalign is the first menu. Windows apps tend to put application level menus into "File", such as Quit, Preferences, while mac apps put them in the first...