Skip to content

Commit

Permalink
hyprexpo: use touchDown for touchscreen workspace selection (#245)
Browse files Browse the repository at this point in the history
* flake.lock: update

* hyprexpo: use touchDown for touchscreen workspace selection
  • Loading branch information
matt1432 authored Nov 14, 2024
1 parent 844eb98 commit 344a69d
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 35 deletions.
215 changes: 183 additions & 32 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Official Hyprland Plugins";

inputs = {
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprland.url = "github:hyprwm/Hyprland";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
Expand Down
2 changes: 1 addition & 1 deletion hyprexpo/overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ COverview::COverview(PHLWORKSPACE startedOn_, bool swipe_) : startedOn(startedOn
touchMoveHook = g_pHookSystem->hookDynamic("touchMove", onCursorMove);

mouseButtonHook = g_pHookSystem->hookDynamic("mouseButton", onCursorSelect);
touchUpHook = g_pHookSystem->hookDynamic("touchUp", onCursorSelect);
touchDownHook = g_pHookSystem->hookDynamic("touchDown", onCursorSelect);
}

void COverview::redrawID(int id, bool forcelowres) {
Expand Down
2 changes: 1 addition & 1 deletion hyprexpo/overview.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class COverview {
SP<HOOK_CALLBACK_FN> mouseMoveHook;
SP<HOOK_CALLBACK_FN> mouseButtonHook;
SP<HOOK_CALLBACK_FN> touchMoveHook;
SP<HOOK_CALLBACK_FN> touchUpHook;
SP<HOOK_CALLBACK_FN> touchDownHook;

bool swipe = false;
bool swipeWasCommenced = false;
Expand Down

0 comments on commit 344a69d

Please sign in to comment.