Lea Anthony
876b845762
[Windows] Restore min/max after fullscreen
2022-02-10 19:55:04 +11:00
stffabi
7bc51725c0
[v2, windows] Apply suggested window size during DPI changed event ( #1131 )
...
* [v2, windows] Apply suggested window size during DPI changed event
This adjusts the window size if the window is moved from one
monitor to another with a different DPI scaling
* [v2, windows] Do not block processing of messages during frameless drag/resize
* [v2, windows] Bump winc
Improves the HiDPI handling by using newer APIs if available
* [v2, windows] Constrain frameless maximize to MaxWidth/MaxHeight
2022-02-08 07:56:01 +11:00
Lea Anthony
0c6864c7ed
[windows] Fix pos/getpos calls
2022-02-04 07:45:44 +11:00
Lea Anthony
0971857e7e
Fix position runtime ( #1123 )
...
* [linux] Move SetTitle and startDrag to main thread
* [linux] Move SetPosition, Center, Fullscreen and UnFullscreen to main thread
* Fix runtime Window Get/Set Position signatures
* Fix vanilla template keyboard handling
2022-02-03 21:42:14 +11:00
Lea Anthony
6a5937bd90
[windows] Do not allow maximise via runtime if disableResize is true
2022-02-03 07:31:05 +11:00
Lea Anthony
6a10bf4d98
[linux] Better Go 1.16 support
2022-01-31 21:21:48 +11:00
MikeSchaap
965187a8bb
Updated windows window/frontend to fix issue with html select positioning ( #1082 )
...
* Updated windows window/frontend to fix issue with html select positioning
* Moved notifyParentWindowPositionChanged to the Window struct and moved RegMsgHandler to Run
* Update v2/internal/frontend/desktop/windows/window.go
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* Moved winc.RegMsgHandler back to old location
* fixed error with merge
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-01-26 18:48:39 +11:00
stffabi
b1c2065dfb
[v2, windows] Add WebviewUserDataPath to windows options
2022-01-25 21:42:01 +01:00
stffabi
46d3288a50
[v2] windows: Improve frameless window handling
...
The following features are now supported for framless windows
- Allow aero snap
- Minimize and maximize animations
- Allow minimizing/restoring by clicking onto the taskbar icon
- If EnableFramelessBorder is used, the default application border with glass effect is used
Change: If a menu is used, it won't be displayed anymore if the window is frameless.
2022-01-19 14:54:29 +01:00
stffabi
c4b14740d5
[v2] Only call EnableSizable for normal windows
...
Frameless windows are always not resizable per default and
the resizing for those will be initiated by the frontend see
processMessage.
If EnableSizable is enabled for frameless windows, a small white
titlebar will be shown.
Fix #1049
2022-01-17 10:23:20 +01:00
Lea Anthony
8b7d4393dc
Revert "WIP"
...
This reverts commit b07fd608b3
.
2022-01-12 20:34:37 +11:00
Lea Anthony
b07fd608b3
WIP
2022-01-12 20:29:20 +11:00
redraskal
b32c5b7ba2
fix: [v2] win runtime.WindowMinimise()
2022-01-10 23:00:31 -06:00
redraskal
0593c29784
fix: [v2] win runtime.WindowMaximise()
2022-01-10 22:59:40 -06:00
Pierre Joye
e9aba4795f
Allow window resizing regardless of frameless or other options
...
Fix bug on Windows where the disableResize option depends on the frameless option.
2021-12-30 16:55:47 +07:00
ironpark
fda3323386
basic implement
2021-12-04 04:55:36 +09:00
stffabi
d827aafe89
[v2] Improve processRequest: Handle errors and behave more like a webserver
...
This also fixes that requests remain in "pending" state on
darwin if e.g. a file is not found or an error occurs during
loading of the file.
2021-12-03 16:41:51 +01:00
Lea Anthony
97be694d2a
Merge pull request #996 from stffabi/feature/improved-translate-uri
...
[v2] Improve translation of URI to file to be loaded
2021-12-02 05:38:04 -08:00
Lea Anthony
576e574399
Merge pull request #994 from stffabi/feature/fix-webresourcerequest-memoryleak
...
[v2] Fix memory leak in processRequest for windows and darwin
2021-12-02 04:01:22 -08:00
Lea Anthony
6d9a195830
Merge pull request #991 from stffabi/feature/windows-frameless-border
...
[windows] Support drawing a frame for frameless to support hiding the titlebar
2021-12-02 04:00:01 -08:00
stffabi
8107a8bd1e
[v2] Improve translation of URI to file to be loaded
2021-12-02 11:53:32 +01:00
stffabi
47d783291d
[windows] Support drawing a frame for frameless to support hiding the titlebar
2021-12-02 11:16:13 +01:00
stffabi
0295f8dee2
[v2] Fix memory leak in processRequest for windows and darwin
2021-12-02 11:04:24 +01:00
stffabi
a353a653d1
[windows] Replace dispatch with invoke
2021-12-01 13:24:54 +01:00
stffabi
155f1fde49
[v2] Do not block during processing of messages
...
On windows blocking here results in a blocked main thread
and a blocked webview.
2021-12-01 13:24:19 +01:00
stffabi
2e15f22621
[v2] Windows do not apply WindowStartState on reloads
2021-11-29 15:14:03 +01:00
stffabi
1d87a81f63
[v2] Use invoke to dispatch callbacks on windows
2021-11-24 13:05:31 +01:00
Lea Anthony
9525667ebd
[windows] Add Frameless resize
2021-11-22 06:47:09 +11:00
Lea Anthony
56ef4ddd47
[v2] Add WindowStartState. Fix startHidden option. Only windows supported atm
2021-11-10 18:11:54 +11:00
Lea Anthony
bad9ad3dd7
[v2] Refactor app options
2021-11-10 08:42:04 +11:00
Lea Anthony
0c2963cf53
[windows] Add webview2 permissions
2021-10-23 07:17:58 +11:00
Lea Anthony
b61fd16936
[windows] Disable swipe navigation
2021-10-23 05:50:39 +11:00
Lea Anthony
04cde94c96
[windows] add build tags to browser runtime
2021-10-17 21:50:15 +11:00
Lea Anthony
a51d8bb47d
[v2] Move "AlwaysOnTop" option
2021-10-13 08:05:31 +11:00
Lea Anthony
e0e4c0ae11
[v2] Add "AlwaysOnTop" option
2021-10-13 08:02:35 +11:00
Lea Anthony
5e36f4fc7f
[v2] Remove chromium message on shutdown
2021-10-12 08:58:33 +11:00
Lea Anthony
a16e41f813
[v2] Tidy up frontend
2021-10-07 21:04:33 +11:00
unknown
be5f7ceb0e
uncomment PostMessage
2021-10-07 17:34:06 +08:00
unknown
a148c67df0
don't hook any AcceleratorKey in callback
2021-10-07 14:35:14 +08:00
unknown
69297667c1
PutAreBrowserAcceleratorKeysEnabled => false
2021-10-07 14:28:52 +08:00
unknown
9949420639
add template.JSEscapeString to ensure ExecJs normal execution
2021-10-05 09:45:36 +08:00
Lea Anthony
1b28f69236
[v2] Fix -devserverurl flag
2021-10-03 16:44:37 +11:00
Lea Anthony
7572b64bec
[v2] Add -devserverurl flag
2021-10-03 15:07:10 +11:00
Lea Anthony
4a740e6186
[v2] Fix: Remove random C imports
2021-09-28 20:00:42 +10:00
Lea Anthony
fe6dd4d18f
[windows] fix fullscreen at startup
2021-09-22 19:28:07 +10:00
Lea Anthony
9f235bf78d
[windows] Fix fullscreen + drag
2021-09-21 17:35:38 +10:00
Lea Anthony
5dfbd5f71b
[windows] Fix frameless
2021-09-21 07:58:27 +10:00
Lea Anthony
3ac4982fc5
[mac] Make it compile
2021-09-19 17:32:57 +10:00
Lea Anthony
817952f3d0
[windows] Misc updates for feature parity
2021-09-19 17:14:06 +10:00
Lea Anthony
9f89a4a58a
Merge branch 'v2-alpha' into v2-alpha
2021-09-15 23:33:33 +10:00