mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
screenshot/colorpicker: fix scaling, update go-wayland to fix object
destruction, fix hyprland window detection
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package client
|
||||
|
||||
import "sync/atomic"
|
||||
|
||||
type Dispatcher interface {
|
||||
Dispatch(opcode uint32, fd int, data []byte)
|
||||
}
|
||||
@@ -9,11 +11,14 @@ type Proxy interface {
|
||||
SetContext(ctx *Context)
|
||||
ID() uint32
|
||||
SetID(id uint32)
|
||||
IsZombie() bool
|
||||
MarkZombie()
|
||||
}
|
||||
|
||||
type BaseProxy struct {
|
||||
ctx *Context
|
||||
id uint32
|
||||
ctx *Context
|
||||
id uint32
|
||||
zombie atomic.Bool
|
||||
}
|
||||
|
||||
func (p *BaseProxy) ID() uint32 {
|
||||
@@ -31,3 +36,11 @@ func (p *BaseProxy) Context() *Context {
|
||||
func (p *BaseProxy) SetContext(ctx *Context) {
|
||||
p.ctx = ctx
|
||||
}
|
||||
|
||||
func (p *BaseProxy) IsZombie() bool {
|
||||
return p.zombie.Load()
|
||||
}
|
||||
|
||||
func (p *BaseProxy) MarkZombie() {
|
||||
p.zombie.Store(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user