aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-10-24 15:45:47 +0200
committerFurkan Sahin <furkan-dev@proton.me>2018-10-24 15:45:47 +0200
commit3f26668ff8f8f698ac93864abb3f0d8b9a60551c (patch)
tree1164f5d83b421ef5e2bdf49764a096b9551e5363 /include
parent0d874a42a75e91984255ddd11730f5aac5436ba9 (diff)
parent9fa85d2e36e8c33c85a5eeec89aa21b006ce6539 (diff)
Merge pull request #2957 from RyanDwyer/rebase-cursor-after-map
Rebase the cursor after mapping a view
Diffstat (limited to 'include')
-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.