mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
lua position, size, focus and z-index (not really)
This commit is contained in:
parent
2c130539f6
commit
47bcce621d
14 changed files with 236 additions and 98 deletions
|
|
@ -75,7 +75,7 @@ pub fn processCursorMotion(self: *Cursor, time_msec: u32) void {
|
|||
switch (self.mode) {
|
||||
.passthrough => {
|
||||
if (server.root.viewAt(self.wlr_cursor.x, self.wlr_cursor.y)) |res| {
|
||||
server.seat.focusView(res.view);
|
||||
res.view.setFocused();
|
||||
|
||||
server.seat.wlr_seat.pointerNotifyEnter(res.surface, res.sx, res.sy);
|
||||
server.seat.wlr_seat.pointerNotifyMotion(time_msec, res.sx, res.sy);
|
||||
|
|
@ -134,8 +134,7 @@ fn handleButton(
|
|||
_ = server.seat.wlr_seat.pointerNotifyButton(event.time_msec, event.button, event.state);
|
||||
|
||||
if (server.seat.focused_view) |view| {
|
||||
server.seat.focusView(view);
|
||||
server.root.focusView(view);
|
||||
view.setFocused();
|
||||
}
|
||||
|
||||
switch (event.state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue