windowstack

package
v0.0.0-...-6789dc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2021 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package windowstack retrieves information about the windowstack using Lomiri's dbus interface

Index

Constants

This section is empty.

Variables

View Source
var BusAddress bus.Address = bus.Address{
	Interface: "com.lomiri.WindowStack",
	Path:      "/com/lomiri/WindowStack",
	Name:      "com.lomiri.WindowStack",
}

Well known address for the WindowStack API

Functions

This section is empty.

Types

type WindowStack

type WindowStack struct {
	// contains filtered or unexported fields
}

WindowStack encapsulates info needed to call out to the WindowStack API

func New

func New(endp bus.Endpoint, log logger.Logger) *WindowStack

New returns a new WindowStack that'll use the provided bus.Endpoint

func (*WindowStack) GetWindowStack

func (stack *WindowStack) GetWindowStack() []WindowsInfo

GetWindowStack returns the window stack state

func (*WindowStack) IsAppFocused

func (stack *WindowStack) IsAppFocused(AppId *click.AppId) bool

type WindowsInfo

type WindowsInfo struct {
	WindowId uint32
	AppId    string // in the form "app.example" or "webbrowser-app"
	Focused  bool
	Stage    uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL