22 lines
686 B
C
22 lines
686 B
C
// Copyright (c) 2026 Storm Dragon
|
|
// Authors: Storm Dragon, Angus Kola
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
#ifndef CTHULHU_WINDOW_TITLE_H
|
|
#define CTHULHU_WINDOW_TITLE_H
|
|
#include <X11/Xlib.h>
|
|
|
|
typedef struct {
|
|
unsigned long window, titleWindow;
|
|
char *title, *application;
|
|
int wine, focused, x, y, width, height;
|
|
} WindowTitle;
|
|
WindowTitle cthulhu_read_window_title(Display *display, Window window);
|
|
typedef struct {
|
|
char *application;
|
|
unsigned long pid;
|
|
int wine;
|
|
} ApplicationWindow;
|
|
ApplicationWindow *cthulhu_list_application_windows(Display *display, int *count);
|
|
void cthulhu_free_application_windows(ApplicationWindow *windows, int count);
|
|
#endif
|