~aov2okrxsfn8o2

Recent activity

Re: [PATCH gio] app/internal: [X11] implement Window.Close a month ago

From Jason to ~eliasnaur/gio-patches


On Sun, 21 Jun, 2020 at 21:51, Elias Naur <mail@eliasnaur.com> wrote:
> On Sun Jun 21, 2020 at 1:54 PM CEST, Jason wrote:
>> 
>> 
>>  On Sun, 21 Jun, 2020 at 11:48, Elias Naur <mail@eliasnaur.com> 
>> wrote:
>>  > On Sun Jun 21, 2020 at 11:23, Jason wrote:
>>  >>
>>  >>
>>  >>  On Sun, 21 Jun, 2020 at 10:58, Elias Naur <mail@eliasnaur.com>
>>  >> wrote:
>>  >>  > On Sun Jun 21, 2020 at 05:35, Konstantin Kulikov wrote:

[PATCH v7] app/window,app/internal/window: allow min/max window size a month ago

From Jason to ~eliasnaur/gio-patches

The app.MinSize and app.MaxSize options restricts the window size:

w := app.NewWindow(
	app.Size(unit.Dp(600), unit.Dp(596)),
	app.MinSize(unit.Dp(600), unit.Dp(596)),
	app.MaxSize(unit.Dp(600), unit.Dp(596)),
	app.Title(APPNAME),
)

Signed-off-by: Jason <sourcehut@sweatyballs.es>
---
 app/internal/window/os_macos.go   | 13 ++++++-
 app/internal/window/os_macos.m    |  8 +++-
 app/internal/window/os_windows.go | 50 +++++++++++++++++++++++-
[message trimmed]

[PATCH v6] app/window,app/internal/window: allow min/max window size a month ago

From Jason to ~eliasnaur/gio-patches

The app.MinSize and app.MaxSize options restricts the window size:

w := app.NewWindow(
	app.Size(unit.Dp(600), unit.Dp(596)),
	app.MinSize(unit.Dp(600), unit.Dp(596)),
	app.MaxSize(unit.Dp(600), unit.Dp(596)),
	app.Title(APPNAME),
)

Signed-off-by: Jason <sourcehut@sweatyballs.es>
---
 app/internal/window/os_macos.go   | 13 ++++++-
 app/internal/window/os_macos.m    |  8 +++-
 app/internal/window/os_windows.go | 59 ++++++++++++++++++++++++++++-
[message trimmed]

[PATCH v5] app/window,app/internal/window: allow min/max window size a month ago

From Jason to ~eliasnaur/gio-patches

The app.MinSize and app.MaxSize options restricts the window size:

w := app.NewWindow(
	app.Size(unit.Dp(600), unit.Dp(596)),
	app.MinSize(unit.Dp(600), unit.Dp(596)),
	app.MaxSize(unit.Dp(600), unit.Dp(596)),
	app.Title(APPNAME),
)

Signed-off-by: Jason <sourcehut@sweatyballs.es>
---
 app/internal/window/os_macos.go   | 13 ++++++-
 app/internal/window/os_macos.m    |  8 +++-
 app/internal/window/os_windows.go | 59 ++++++++++++++++++++++++++++-
[message trimmed]

Re: [PATCH v4] app/window,app/internal/window: allow min/max window size for x11, windows and macos a month ago

From Jason to ~eliasnaur/gio-patches


On Sun, 21 Jun, 2020 at 10:47, Elias Naur <mail@eliasnaur.com> wrote:
> Almost there, I think.  Thank you for your patience :)
> 
> On Sat Jun 20, 2020 at 19:57, Jason wrote:
>>  diff --git a/app/internal/window/os_windows.go 
>> b/app/internal/window/os_windows.go
>>  index 41c0d07..b0a79fb 100644
>>  --- a/app/internal/window/os_windows.go
>>  +++ b/app/internal/window/os_windows.go
>>  @@ -26,6 +26,11 @@ import (
>>   	"gioui.org/io/system"
>>   )

Re: [PATCH gio] app/internal: [X11] implement Window.Close a month ago

From Jason to ~eliasnaur/gio-patches


On Sun, 21 Jun, 2020 at 11:48, Elias Naur <mail@eliasnaur.com> wrote:
> On Sun Jun 21, 2020 at 11:23, Jason wrote:
>> 
>> 
>>  On Sun, 21 Jun, 2020 at 10:58, Elias Naur <mail@eliasnaur.com> 
>> wrote:
>>  > On Sun Jun 21, 2020 at 05:35, Konstantin Kulikov wrote:
>>  >>  On Sat, Jun 20, 2020 at 7:47 PM Elias Naur <mail@eliasnaur.com>
>>  >> wrote:
>>  >>  >
>>  >>  > I'm not sure XUnmapWindow is correct either. See
>>  >>  >

Re: [PATCH gio] app/internal: [X11] implement Window.Close a month ago

From Jason to ~eliasnaur/gio-patches


On Sun, 21 Jun, 2020 at 10:58, Elias Naur <mail@eliasnaur.com> wrote:
> On Sun Jun 21, 2020 at 05:35, Konstantin Kulikov wrote:
>>  On Sat, Jun 20, 2020 at 7:47 PM Elias Naur <mail@eliasnaur.com> 
>> wrote:
>>  >
>>  > I'm not sure XUnmapWindow is correct either. See
>>  >
>>  >         https://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1
>>  >
>> 
>>  Window managers react to UnmapNotify, see for example
>>  https://github.com/nigeltao/taowm/blob/master/main.go#L399

[PATCH v4] app/window,app/internal/window: allow min/max window size for x11, windows and macos a month ago

From Jason to ~eliasnaur/gio-patches

The app.MinSize and app.MaxSize options restricts the window size:

w := app.NewWindow(
	app.Size(unit.Dp(600), unit.Dp(596)),
	app.MinSize(unit.Dp(600), unit.Dp(596)),
	app.MaxSize(unit.Dp(600), unit.Dp(596)),
	app.Title(APPNAME),
)

Signed-off-by: Jason <sourcehut@sweatyballs.es>
---
 app/internal/window/os_macos.go   | 13 ++++++-
 app/internal/window/os_macos.m    |  8 +++-
 app/internal/window/os_windows.go | 47 +++++++++++++++++++++++-
[message trimmed]

Re: [PATCH v3] app/window,app/internal/window: allow min/max window size a month ago

From Jason to ~eliasnaur/gio-patches


On Fri, 19 Jun, 2020 at 22:11, Elias Naur <mail@eliasnaur.com> wrote:
> On Fri Jun 19, 2020 at 15:04, Jason wrote:
>>  diff --git a/app/internal/window/os_macos.go 
>> b/app/internal/window/os_macos.go
>>  index fef2acd..b5a3568 100644
>>  --- a/app/internal/window/os_macos.go
>>  +++ b/app/internal/window/os_macos.go
>>  @@ -307,16 +307,28 @@ func NewWindow(win Callbacks, opts *Options) 
>> error {
>>   		screenScale := float32(C.gio_getScreenBackingScale())
>>   		cfg := configFor(screenScale)
>>   		width := cfg.Px(opts.Width)

[PATCH v3] app/window,app/internal/window: allow min/max window size a month ago

From Jason to ~eliasnaur/gio-patches

Applies to X11, Windows and macOS.

The app.MinSize and app.MaxSize options restricts the window size:

w := app.NewWindow(
	app.Size(unit.Dp(600), unit.Dp(596)),
	app.MinSize(unit.Dp(600), unit.Dp(596)),
	app.MaxSize(unit.Dp(600), unit.Dp(596)),
	app.Title(APPNAME),
)

Signed-off-by: Jason <sourcehut@sweatyballs.es>
---
 app/internal/window/os_macos.go   | 16 +++++++-
[message trimmed]