| 2337 | } |
| 2338 | |
| 2339 | func (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 | |
| 2357 | func createChanges(event xproto.ConfigureRequestEvent) []uint32 { |
| 2358 | // selecting the right values that the window has asked to configure |