Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect pointer speed to determine if to show up auto-hidden dock #31

Merged
merged 6 commits into from
Nov 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
resize detectorBox to h/3 (w/3)
nwg-piotr committed Nov 15, 2022

Verified

This commit was signed with the committer’s verified signature.
GuySartorelli Guy Sartorelli
commit 04910b6051c67775326d36c755bf1b4e13e45100
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -307,7 +307,7 @@ func setupHotSpot(monitor gdk.Monitor, dockWindow *gtk.Window) gtk.Window {
})

if *position == "bottom" || *position == "top" {
detectorBox.SetSizeRequest(w, h/5)
detectorBox.SetSizeRequest(w, h/3)
hotspotBox.SetSizeRequest(w, 2)
if *position == "bottom" {
layershell.SetAnchor(win, layershell.LAYER_SHELL_EDGE_BOTTOM, true)
@@ -320,7 +320,7 @@ func setupHotSpot(monitor gdk.Monitor, dockWindow *gtk.Window) gtk.Window {
}

if *position == "left" {
detectorBox.SetSizeRequest(w/5, h)
detectorBox.SetSizeRequest(w/3, h)
hotspotBox.SetSizeRequest(2, h)
layershell.SetAnchor(win, layershell.LAYER_SHELL_EDGE_LEFT, true)