mouse: Add debug output for touchpad disable switch

See https://bugzilla.gnome.org/show_bug.cgi?id=779290
This commit is contained in:
Bastien Nocera 2017-03-01 13:00:01 +01:00
parent 726dcfee91
commit cf5c17b692

View file

@ -167,6 +167,10 @@ show_touchpad_enabling_switch (CcMousePropertiesPrivate *d)
if (!d->have_touchpad)
return FALSE;
g_debug ("Should we show the touchpad disable switch: have_mouse: %s have_touchscreen: %s\n",
d->have_mouse ? "true" : "false",
d->have_touchscreen ? "true" : "false");
/* Let's show the button when a mouse or touchscreen is present */
if (d->have_mouse || d->have_touchscreen)
return TRUE;