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

Function createChanges

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

Source from the content-addressed store, hash-verified

2355}
2356
2357func createChanges(event xproto.ConfigureRequestEvent) []uint32 {
2358 // selecting the right values that the window has asked to configure
2359
2360 changes := make([]uint32, 0, 7)
2361
2362 if event.ValueMask&xproto.ConfigWindowX != 0 {
2363 changes = append(changes, uint32(event.X))
2364 }
2365 if event.ValueMask&xproto.ConfigWindowY != 0 {
2366 changes = append(changes, uint32(event.Y))
2367 }
2368 if event.ValueMask&xproto.ConfigWindowWidth != 0 {
2369 changes = append(changes, uint32(event.Width))
2370 }
2371 if event.ValueMask&xproto.ConfigWindowHeight != 0 {
2372 changes = append(changes, uint32(event.Height))
2373 }
2374 if event.ValueMask&xproto.ConfigWindowBorderWidth != 0 {
2375 changes = append(changes, uint32(event.BorderWidth))
2376 }
2377 if event.ValueMask&xproto.ConfigWindowSibling != 0 {
2378 changes = append(changes, uint32(event.Sibling))
2379 }
2380 if event.ValueMask&xproto.ConfigWindowStackMode != 0 {
2381 changes = append(changes, uint32(event.StackMode))
2382 }
2383
2384 return changes
2385}
2386
2387func (wm *WindowManager) Close() {
2388 // close the connection

Callers 1

OnConfigureRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected