Commit 40eddbbb authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

osk-button: Show/hide depending on a11y setting



This makes sure we don't show the button even though
squeekboard would not unfold.

Closes: #363
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 80d2c2cd
Pipeline #60112 passed with stages
in 44 minutes and 25 seconds
......@@ -118,6 +118,9 @@ update_props (PhoshModeManager *self)
if (device_type == PHOSH_MODE_DEVICE_TYPE_PHONE &&
(hw & PHOSH_MODE_DOCKED_PHONE_MASK) == PHOSH_MODE_DOCKED_PHONE_MASK) {
mimicry = PHOSH_MODE_DEVICE_TYPE_DESKTOP;
} else if (device_type == PHOSH_MODE_DEVICE_TYPE_TABLET &&
(hw & PHOSH_MODE_DOCKED_TABLET_MASK) == PHOSH_MODE_DOCKED_TABLET_MASK) {
mimicry = PHOSH_MODE_DEVICE_TYPE_DESKTOP;
}
g_object_freeze_notify (G_OBJECT (self));
......
......@@ -50,6 +50,7 @@ typedef enum {
/* TODO: keyboard is hard to detect due to gpio keys, etc */
#define PHOSH_MODE_DOCKED_PHONE_MASK (PHOSH_MODE_HW_EXT_DISPLAY \
| PHOSH_MODE_HW_POINTER)
#define PHOSH_MODE_DOCKED_TABLET_MASK (PHOSH_MODE_HW_POINTER)
#define PHOSH_TYPE_MODE_MANAGER (phosh_mode_manager_get_type ())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment