This commit is contained in:
2025-09-29 21:20:48 +01:00
parent 1c9e62f9a3
commit ecf522bd8f
3 changed files with 110 additions and 58 deletions

View File

@@ -14,8 +14,7 @@
#include <stdlib.h>
#include <unistd.h>
// XCB headers
#include <xcb/randr.h>
// XCB header
#include <xcb/xcb.h>
// Global variables
@@ -97,13 +96,6 @@ int deploy(void) {
// Free a geometry structure
void free_geometry(Geometry *g) { free(g); }
// Get monitor geometries using XRandR, returns an array of Geometry structures
// The caller is responsible for freeing the returned array
Geometry *xrandr_get_monitors(void) {
// TODO: Loop through monitors and return their geometries
// return all;
}
// Set input focus to a window
void focus(xcb_window_t win) {
xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, win,