Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions hotkey_linux.c → hotkey_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Written by Changkun Ou <changkun.de>

//go:build linux
//go:build linux || openbsd

#include <stdint.h>
#include <stdio.h>
Expand Down Expand Up @@ -74,4 +74,4 @@ int waitHotkey(uintptr_t hkhandle, unsigned int mod, int key) {
return 0;
}
}
}
}
4 changes: 3 additions & 1 deletion hotkey_linux.go → hotkey_x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
//
// Written by Changkun Ou <changkun.de>

//go:build linux
//go:build linux || openbsd

package hotkey

/*
#cgo LDFLAGS: -lX11
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib -lX11
#cgo openbsd CFLAGS: -I/usr/X11R6/include

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion hotkey_linux_test.go → hotkey_x11_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Written by Changkun Ou <changkun.de>

//go:build linux && cgo
//go:build (linux || openbsd) && cgo

package hotkey_test

Expand Down
2 changes: 1 addition & 1 deletion mainthread/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Written by Changkun Ou <changkun.de>

//go:build windows || linux || (darwin && !cgo)
//go:build windows || linux || openbsd || (darwin && !cgo)

package mainthread

Expand Down