mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +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)
|
cnf.apply(metric, options)
|
||||||
w.config.Title = cnf.Title
|
w.config.Title = cnf.Title
|
||||||
w.config.Decorated = cnf.Decorated
|
w.config.Decorated = cnf.Decorated
|
||||||
|
w.config.MinSize = cnf.MinSize
|
||||||
|
w.config.MaxSize = cnf.MaxSize
|
||||||
windows.SetWindowText(w.hwnd, cnf.Title)
|
windows.SetWindowText(w.hwnd, cnf.Title)
|
||||||
|
|
||||||
style := windows.GetWindowLong(w.hwnd, windows.GWL_STYLE)
|
style := windows.GetWindowLong(w.hwnd, windows.GWL_STYLE)
|
||||||
|
|||||||
Reference in New Issue
Block a user