Elias Naur
4408c2a695
app/internal/window: [macOS] support more than one window
...
Updates #19
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-06-06 19:09:02 +02:00
Gordon Klaus
e188d0e6ff
io/pointer,gesture,app/internal/window: add pointer.Scroll event type
...
Signed-off-by: Gordon Klaus <gordon.klaus@gmail.com >
2020-06-03 10:08:22 +02:00
Elias Naur
4cb96ccad9
app/internal/window: [macOS] always draw synchronously
...
Asynchronous draws introduces flickering on resizes.
Fixes #123
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-06-02 15:07:04 +02:00
Elias Naur
1377bea3cd
app/internal/window: [macOS,iOS] reduce display link starting and stopping
...
Recent changes to the macOS threading exposed a problem where a
window's display link may fail to start after being started and stopped
in rapid succession.
Introduce a displayLink type that waits a while after the last stop
request before stopping its display link. That seems to be the way
other projects are using display links.
As a bonus, the new implementation avoids the potentially expensive
overhead of frequent starting and stopping the underlying OS thread.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-05-30 14:42:00 +02:00
Elias Naur
10a81bf217
app/internal/window: [macOS] fold header files into Cgo preambles
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-05-17 15:43:12 +02:00
Elias Naur
85a75ee265
app/internal/window: [macOS] move main thread dispatching to Go
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-05-17 15:43:12 +02:00
Elias Naur
eb8745eb32
app/internal/window: remove redundant return
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-12-01 22:38:38 +01:00
Larry Clapp
f8de7545f4
several: add modifiers to mouse events and clicks
...
macOS only, for the os-specific bits.
Signed-off-by: Larry Clapp <larry@theclapp.org >
2019-11-18 15:38:09 +01:00
Elias Naur
dc7f9bab23
io/pointer,gesture: report right and middle mouse button events
...
Updates gio#60
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-11-09 17:41:39 +01:00
Elias Naur
10c1b2cb8d
app,internal/window: extract native window code to separate package
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-10-14 16:39:32 +02:00