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:
Kristian Høgsberg 2011-01-26 20:35:07 -05:00
parent 26ef22e3f4
commit 93331ff40a
5 changed files with 58 additions and 37 deletions

View file

@ -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