mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-21 06:59:46 -05:00
compositor: Forward pointer focus notification from compostor backend
This lets the compositor place the pointer sprite correctly when it receives pointer focus and allows it to send pointer focus to any client that might receive pointer focus as the compositor receives it.
This commit is contained in:
parent
26ef22e3f4
commit
93331ff40a
5 changed files with 58 additions and 37 deletions
|
|
@ -54,7 +54,6 @@ static void on_enter_vt(int signal_number, void *data)
|
|||
ret = ioctl(tty->fd, KDSETMODE, KD_GRAPHICS);
|
||||
if (ret)
|
||||
fprintf(stderr, "failed to set KD_GRAPHICS mode on console: %m\n");
|
||||
tty->compositor->focus = 1;
|
||||
}
|
||||
|
||||
static void on_leave_vt(int signal_number, void *data)
|
||||
|
|
@ -67,8 +66,6 @@ static void on_leave_vt(int signal_number, void *data)
|
|||
if (ret)
|
||||
fprintf(stderr,
|
||||
"failed to set KD_TEXT mode on console: %m\n");
|
||||
|
||||
tty->compositor->focus = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue