]> git.sur5r.net Git - i3/i3/blobdiff - include/startup.h
Merge branch 'master' into next
[i3/i3] / include / startup.h
index bcc59a0a67104e34d30e45f481884354e66bc994..9cbdf17bd20950bc6de744b43d7300b3df3a9bfd 100644 (file)
@@ -10,8 +10,7 @@
  *            the appropriate workspace.
  *
  */
-#ifndef I3_STARTUP_H
-#define I3_STARTUP_H
+#pragma once
 
 #define SN_API_NOT_YET_FROZEN 1
 #include <libsn/sn-monitor.h>
  */
 void start_application(const char *command, bool no_startup_id);
 
+/**
+ * Deletes a startup sequence, ignoring whether its timeout has elapsed.
+ * Useful when e.g. a window is moved between workspaces and its children
+ * shouldn't spawn on the original workspace.
+ *
+ */
+void startup_sequence_delete(struct Startup_Sequence *sequence);
+
 /**
  * Called by libstartup-notification when something happens
  *
  */
 void startup_monitor_event(SnMonitorEvent *event, void *userdata);
 
+/**
+ * Gets the stored startup sequence for the _NET_STARTUP_ID of a given window.
+ *
+ */
+struct Startup_Sequence *startup_sequence_get(i3Window *cwindow,
+                                              xcb_get_property_reply_t *startup_id_reply, bool ignore_mapped_leader);
+
 /**
  * Checks if the given window belongs to a startup notification by checking if
  * the _NET_STARTUP_ID property is set on the window (or on its leader, if it’s
@@ -47,5 +61,3 @@ void startup_monitor_event(SnMonitorEvent *event, void *userdata);
  *
  */
 char *startup_workspace_for_window(i3Window *cwindow, xcb_get_property_reply_t *startup_id_reply);
-
-#endif