MCPcopy Create free account
hub / github.com/BobdaProgrammer/doWM / OnConfigureRequest

Method OnConfigureRequest

wm/window_manager.go:2339–2355  ·  view source on GitHub ↗
(event xproto.ConfigureRequestEvent)

Source from the content-addressed store, hash-verified

2337}
2338
2339func (wm *WindowManager) OnConfigureRequest(event xproto.ConfigureRequestEvent) {
2340 changes := createChanges(event)
2341
2342 fmt.Println(event.ValueMask)
2343 fmt.Println(changes)
2344
2345 err := xproto.ConfigureWindowChecked(
2346 wm.conn,
2347 event.Window,
2348 event.ValueMask,
2349 changes,
2350 ).Check()
2351
2352 if err != nil {
2353 slog.Error("couldn't configure window", "error:", err.Error())
2354 }
2355}
2356
2357func createChanges(event xproto.ConfigureRequestEvent) []uint32 {
2358 // selecting the right values that the window has asked to configure

Callers 1

RunMethod · 0.95

Calls 1

createChangesFunction · 0.85

Tested by

no test coverage detected