diff --git a/futureplans.md b/futureplans.md index 01c05ac..a4c6c2d 100644 --- a/futureplans.md +++ b/futureplans.md @@ -104,6 +104,8 @@ big dumb things: - listboxes should have horizontal scrollbars on all platforms; this is way too hard on OS X and doesn't work; my code is in experiments/ - also moved the Windows code there for the sake of efficiency - GTK+ works just fine though +- window sizes need to not include the window decoration; while Mac OS X and GTK+ both obey this, I've only had issues with Windows; check the experiments/ folder + - also will need to be documented in window.go specifics: diff --git a/sysdata_unix.go b/sysdata_unix.go index c9be614..23f29b2 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -264,6 +264,8 @@ func (s *sysData) setWindowSize(width int, height int) error { ret := make(chan struct{}) defer close(ret) uitask <- func() { + // does not take window geometry into account (and cannot, since the window manager won't give that info away) + // thanks to TingPing in irc.gimp.net/#gtk+ gtk_window_resize(s.widget, width, height) ret <- struct{}{} } diff --git a/todo.md b/todo.md index 8926994..5f83c2b 100644 --- a/todo.md +++ b/todo.md @@ -3,7 +3,6 @@ important things: - make sure mouse events trigger when we move the mouse over an Area with a button held on OS X super ultra important things: -- window sizes are inconsistent and wrong: we need to see on which platforms the titlebars/borders/etc. count... - formalize what happens if Modifiers by themselves are held - OS X: find out if multiple DIFFERENT modifiers released at once produces multiple events - in general, figure out what to do on multiple events, period