Skip to content

Commit

Permalink
home: Hide osk when unfolded and disable swipes when unfolding
Browse files Browse the repository at this point in the history
Signed-off-by: Bardia Moshiri <[email protected]>
  • Loading branch information
FakeShell authored and g7 committed Jan 21, 2024
1 parent 9dc181a commit 73751f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/home.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,13 @@ update_drag_handle (PhoshHome *self, gboolean commit)
PhoshDragSurfaceDragMode drag_mode = PHOSH_DRAG_SURFACE_DRAG_MODE_HANDLE;
PhoshDragSurfaceState drag_state = phosh_drag_surface_get_drag_state (PHOSH_DRAG_SURFACE (self));

/* reset osk_toggle_long_press to prevent OSK from unfolding accidently */
/* hide osk only when unfolded */
if (self->state == PHOSH_HOME_STATE_FOLDED && drag_state == PHOSH_DRAG_SURFACE_STATE_DRAGGED)
phosh_osk_manager_set_visible (self->osk, FALSE);

/* reset powerbar gestures when unfolding */
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (self->osk_toggle_long_press));
gtk_event_controller_reset(GTK_EVENT_CONTROLLER(self->swipe_gesture));

/* Update the handle's arrow and dragability */
if (phosh_overview_has_running_activities (PHOSH_OVERVIEW (self->overview)) == FALSE &&
Expand Down

0 comments on commit 73751f4

Please sign in to comment.