mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
cleanup: Drop useless conditions
This commit is contained in:
parent
188c63a183
commit
b4fade7fe1
@ -185,8 +185,7 @@ mks_display_legacy_event_cb (MksDisplay *self,
|
||||
if (priv->screen == NULL)
|
||||
return GDK_EVENT_PROPAGATE;
|
||||
|
||||
if (FALSE) {}
|
||||
else if (event_type == GDK_BUTTON_PRESS)
|
||||
if (event_type == GDK_BUTTON_PRESS)
|
||||
{
|
||||
if (priv->inhibitor == NULL)
|
||||
{
|
||||
|
@ -62,8 +62,7 @@ mks_keyboard_keyboard_notify_cb (MksKeyboard *self,
|
||||
g_assert (pspec != NULL);
|
||||
g_assert (MKS_QEMU_IS_KEYBOARD (keyboard));
|
||||
|
||||
if (FALSE) {}
|
||||
else if (strcmp (pspec->name, "modifiers") == 0)
|
||||
if (strcmp (pspec->name, "modifiers") == 0)
|
||||
{
|
||||
self->modifiers = mks_qemu_keyboard_get_modifiers (keyboard);
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MODIFIERS]);
|
||||
|
Loading…
Reference in New Issue
Block a user