X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Fclient%2Fwindows.h;h=91f3f7bf454ee33142a9e893f11c23bb0b35713b;hb=02b304cd9f900415c13dfd45c05503ed045d9c1c;hp=dd03d8b151138079c0dbd1884c632be391b0d026;hpb=c53b42dfc7e4de104f9189428dd5b9a0d431c00a;p=plomrogue
diff --git a/src/client/windows.h b/src/client/windows.h
index dd03d8b..91f3f7b 100644
--- a/src/client/windows.h
+++ b/src/client/windows.h
@@ -1,4 +1,8 @@
/* src/client/windows.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* A tiled window manager for the terminal.
*
@@ -26,11 +30,16 @@
#include /* WINDOW, chtype */
#include /* uint8_t, int16_t, uint16_t, uint32_t */
-#include "../common/yx_uint16.h" /* yx_uint16 struct */
#include "keybindings.h" /* struct KeyBindingDB */
+struct yx_uint16
+{
+ uint16_t y;
+ uint16_t x;
+};
+
struct WinDB
{
WINDOW * t_screen; /* ncurses' pointer to the terminal screen */
@@ -51,7 +60,7 @@ struct Win
struct yx_uint16 target_center; /* saves .center when toggling .view */
struct yx_uint16 frame_size; /* size of window/frame to see winmap through*/
struct yx_uint16 start; /* upper left corner of window in v_screen */
- struct yx_uint16 center; /* winnap cell to center frame on if < winmap */
+ struct yx_uint16 center; /* winmap cell to center frame on if < winmap */
struct yx_uint16 winmap_size; /* delimits .winmap, sorts it into lines */
chtype * winmap; /* window content in sequence of chtype's to write */
int16_t target_height; /* window size / .frame_size description in config */