map-pointer: minor fixes and cleanups

This commit is contained in:
Isaac Freund
2022-11-25 13:57:35 +01:00
parent cacc986166
commit 3141940efb
5 changed files with 42 additions and 41 deletions

View File

@ -531,6 +531,10 @@ fn handlePointerMapping(self: *Self, event: *wlr.Pointer.event.Button, view: *Vi
.command => |args| {
self.seat.focus(view);
self.seat.runCommand(args);
// This is mildly inefficient as running the command may have already
// started a transaction. However we need to start one after the Seat.focus()
// call in the case where it didn't.
server.root.startTransaction();
},
}
break true;