mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
backends: Add missing code to restore NumLock state on X11
It's not be called to any practical effect yet in this backend, but will do soon. https://gitlab.gnome.org/GNOME/mutter/merge_requests/590
This commit is contained in:
parent
bd0743a421
commit
832fc798d5
@ -667,7 +667,13 @@ static void
|
|||||||
meta_backend_x11_set_numlock (MetaBackend *backend,
|
meta_backend_x11_set_numlock (MetaBackend *backend,
|
||||||
gboolean numlock_state)
|
gboolean numlock_state)
|
||||||
{
|
{
|
||||||
/* TODO: Currently handled by gnome-settings-deamon */
|
MetaBackendX11 *x11 = META_BACKEND_X11 (backend);
|
||||||
|
MetaBackendX11Private *priv = meta_backend_x11_get_instance_private (x11);
|
||||||
|
unsigned int num_mask;
|
||||||
|
|
||||||
|
num_mask = XkbKeysymToModifiers (priv->xdisplay, XK_Num_Lock);
|
||||||
|
XkbLockModifiers (priv->xdisplay, XkbUseCoreKbd, num_mask,
|
||||||
|
numlock_state ? num_mask : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user