Community
Participate
Working Groups
Currently, its possible to attach an untyped Resize listener to display, but it is never notified. In the JavaDoc of SWT.Resize constant the Display#addListener is not mentioned as well. I think that resizing the display is valid when you change the resolution.
I think that Display fires the multi-purpose "Settings" event when the resolution changes.
(In reply to comment #1) > I think that Display fires the multi-purpose "Settings" event when the > resolution changes. I tried `display.addListener( SWT.Settings, listener )` in GTK, but the listener is not called when the Display resolution changes. However, `display.getBounds()` returns the updated size after the change. Apart from the Settings event, since the bounds of the Display are changing, wouldn't it be consequent to accept a Resize listener?
SWT.Settings event should work on Windows, but it is not sent on Mac and GTK when the display bounds changes. I believe having a SWT.Resize on Display is fine. Note that ideally SWT.Resize would have to be sent when the client area of the display changes. For example, we should get one when the task bar changes height on Windows. I am not sure whether there is support on all platforms for this.