| 2355 | } |
| 2356 | |
| 2357 | func 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 | |
| 2387 | func (wm *WindowManager) Close() { |
| 2388 | // close the connection |