mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: [Windows] don't ignore Min|MaxSize options
The support for minimum and maximum window sizes were broken by a recent change. Found while investigating #608. References: https://todo.sr.ht/~eliasnaur/gio/608 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -691,6 +691,8 @@ func (w *window) Configure(options []Option) {
|
||||
cnf.apply(metric, options)
|
||||
w.config.Title = cnf.Title
|
||||
w.config.Decorated = cnf.Decorated
|
||||
w.config.MinSize = cnf.MinSize
|
||||
w.config.MaxSize = cnf.MaxSize
|
||||
windows.SetWindowText(w.hwnd, cnf.Title)
|
||||
|
||||
style := windows.GetWindowLong(w.hwnd, windows.GWL_STYLE)
|
||||
|
||||
Reference in New Issue
Block a user