5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 03:40:12 +08:00
wails/v2/internal
skamensky 04d35410de
Expose screen dimensions (#1519)
* get dimensions working for linux

* Cleaning up some GTK code

I was getting the following errors due to some bad casts.

Gdk-CRITICAL **: 18:58:51.943: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed
Gdk-CRITICAL **: 18:58:51.943: gdk_display_get_monitor_at_window: assertion 'GDK_IS_DISPLAY (display)' failed

This commit fixes these errors

* Adding Screen namespace along with linux implementation

* moving ScreenGetAll into a more appropriate place

* Fixing typescript definition mistake, documentation, ordering of functions, and formatting

* add ScreenGetAll to more templates

* moving screen into its own javascript file

* fixing bug where screen objects are not returned from the runtime function

* rebuilding frontend wrapper package

* adding windows implementation of ScreenGetAll

* adding screen get all implementation for darwin

* reverting a change that is unrelated to the work on expose-dimensions

* removing duplicate comparison

* changing GetNthScreen in screen API on macos

To use frame instead of visibleframe to keep into account the space the the dock takes up
We want to include that space in the calculation in order to keep the sizes of screens consistent across platforms

* Correcting screen jsdoc

It used to say it returned a single screen object. Now it says that it returns an array of screen objects

* Fixing typo in function name

* reverting pointless spacing change

* reverting pointless spacing change

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: shmuel.kamensky <shmuel.kamensky@shutterfly.com>
2022-07-16 12:33:37 +10:00
..
appng Fix loglevel for wails build -debug 2022-07-14 22:40:27 +10:00
binding Fixes #1546 2022-07-11 20:56:05 +10:00
colour Gimme some colour 2021-02-20 15:14:20 +11:00
crypto Merge commit 'a213e8bcd1d8e4e5c764978879d875d2d55dd400' as 'v2' 2020-09-15 19:52:54 -05:00
ffenestri Move go-common-file-dialog into project. Fix Title bug. 2022-06-01 21:00:52 +10:00
frontend Expose screen dimensions (#1519) 2022-07-16 12:33:37 +10:00
fs Bugfix: Fix potential nil dereference 2022-02-23 20:57:05 +11:00
github refactor: move from io/ioutil to io and os packages 2021-11-25 12:15:43 +08:00
go-common-file-dialog Move go-common-file-dialog into project. Fix Title bug. 2022-06-01 21:00:52 +10:00
gomod Move go-common-file-dialog into project. Fix Title bug. 2022-06-01 21:00:52 +10:00
logger [windows-x] Huge updates to devmode, runtime, build command. 2021-08-22 23:05:22 +10:00
menumanager Add BackgroundColour and deprecate RGBA (#1475) 2022-06-21 19:47:05 +10:00
messagedispatcher Feature/align api (#1161) 2022-02-19 20:29:55 +11:00
parse [v2] window.backend -> window.go 2021-09-01 20:52:34 +10:00
process [v2] Fix killing dev command on Windows 2021-10-03 22:19:40 +11:00
project Update NSIS guide. Backport docs to .34. Fix references. Fix titles. 2022-03-31 12:23:28 +11:00
runtime/js Remove unused directories + tidy up 2022-03-29 21:47:26 +11:00
s v2.0.0-beta.38 + release script 2022-06-27 20:41:09 +10:00
servicebus [v2] [broken - WIP] Major refactor of runtime in progress 2021-07-19 20:21:41 +10:00
shell Merge commit 'a213e8bcd1d8e4e5c764978879d875d2d55dd400' as 'v2' 2020-09-15 19:52:54 -05:00
signal Better signal handling (#1488) 2022-06-25 09:26:17 +10:00
subsystem [windows-x] Startup/Shutdown -> OnStartup/OnShutdown 2021-08-26 20:38:03 +10:00
system Add nixpkgs support to doctor command. (#1551) 2022-07-13 07:29:41 +10:00
typescriptify fix: blank namespaces, unknown structs 2022-04-06 19:13:10 +10:00
webview2runtime [v2] NSIS installer support for Windows (#1184) 2022-03-02 19:44:31 +11:00
wv2installer Feature: set browser path (#1448) 2022-06-25 07:49:00 +10:00