Skip to content

Type Alias: WindowType ​

ts
type WindowType = "desktop" | "widget" | "overlay";

Defined in: types/desktop-engine.d.ts:937

Window types:

  • desktop: desktop level (wallpapers), below the desktop icons, visible in all Spaces
  • widget: a widget pinned to the desktop, above the desktop icons, borderless with a transparent background, draggable
  • overlay: floats above all windows, borderless with a transparent background, visible in all Spaces (floating widgets, desktop companions) The user can't resize them, but a widget's window when its manifest's widget.resize lets the user (API 8), and showing one doesn't activate the app, so it doesn't take focus from the current app.

A widget's window is the first widget or overlay window without a parent that a widget shows, until it's closed: it has the size the user picked (launchOptions.width / height) whatever its style says, unless the manifest's widget.resize lets the content resize it (then its style's size, within the range), and it stays inside the visible frame of its display, below the menu bar and clear of the Dock, scaled down in its shape when it's bigger. When it gets another frame than its style asked for, its style takes that frame and it fires resize / move.

The SDK is released under the Apache License 2.0