summaryrefslogtreecommitdiff
path: root/textscreen/txt_desktop.h
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_desktop.h')
-rw-r--r--textscreen/txt_desktop.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/textscreen/txt_desktop.h b/textscreen/txt_desktop.h
index 95343977..42a011e7 100644
--- a/textscreen/txt_desktop.h
+++ b/textscreen/txt_desktop.h
@@ -63,6 +63,15 @@ void TXT_ExitMainLoop(void);
void TXT_GUIMainLoop(void);
+/**
+ * Get the top window on the desktop that is currently receiving
+ * inputs.
+ *
+ * @return The active window, or NULL if no windows are present.
+ */
+
+txt_window_t *TXT_GetActiveWindow(void);
+
#endif /* #ifndef TXT_DESKTOP_H */