mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-09 03:16:33 +00:00
gtk: fix duplicate signal handlers
This commit is contained in:
@@ -693,6 +693,10 @@ pub const Window = extern struct {
|
||||
self: *Self,
|
||||
tree: *const Surface.Tree,
|
||||
) void {
|
||||
// Ensure that all old signal handlers have been removed before adding
|
||||
// them. Otherwise we get duplicate surface handlers.
|
||||
self.disconnectSurfaceHandlers(tree);
|
||||
|
||||
const priv = self.private();
|
||||
var it = tree.iterator();
|
||||
while (it.next()) |entry| {
|
||||
|
Reference in New Issue
Block a user