aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-24 15:45:47 +0200
committerGitHub <noreply@github.com>2018-10-24 15:45:47 +0200
commit46fc4ba4e3e2444ff68a894ab837d8e1e3324e0a (patch)
tree1164f5d83b421ef5e2bdf49764a096b9551e5363 /include/sway
parent2fa767ab57c75aa21636fd88ccf6d6539c52d310 (diff)
parentbdae625cb344209424841a7c5f0c0967773c8c10 (diff)
Merge pull request #2957 from RyanDwyer/rebase-cursor-after-map
Rebase the cursor after mapping a view
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/desktop/transaction.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h
index 66e8c9a2..f38f033c 100644
--- a/include/sway/desktop/transaction.h
+++ b/include/sway/desktop/transaction.h
@@ -29,6 +29,13 @@ struct sway_view;
void transaction_commit_dirty(void);
/**
+ * Same as above, but runs the specific callback when the transaction is
+ * applied.
+ */
+void transaction_commit_dirty_with_callback(
+ void (*callback)(void *data), void *data);
+
+/**
* Notify the transaction system that a view is ready for the new layout.
*
* When all views in the transaction are ready, the layout will be applied.