-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from thiagokokada/simplify-event-api
Simplify event api
- Loading branch information
Showing
6 changed files
with
51 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package event | ||
|
||
// DefaultEventHandler is an implementation of [EventHandler] interface with | ||
// all handlers doing nothing. It is a good starting point to be embedded your | ||
// own struct to be extended. | ||
type DefaultEventHandler struct{} | ||
|
||
func (e *DefaultEventHandler) Workspace(WorkspaceName) {} | ||
func (e *DefaultEventHandler) FocusedMonitor(FocusedMonitor) {} | ||
func (e *DefaultEventHandler) ActiveWindow(ActiveWindow) {} | ||
func (e *DefaultEventHandler) Fullscreen(bool) {} | ||
func (e *DefaultEventHandler) MonitorRemoved(MonitorName) {} | ||
func (e *DefaultEventHandler) MonitorAdded(MonitorName) {} | ||
func (e *DefaultEventHandler) CreateWorkspace(WorkspaceName) {} | ||
func (e *DefaultEventHandler) DestroyWorkspace(WorkspaceName) {} | ||
func (e *DefaultEventHandler) MoveWorkspace(MoveWorkspace) {} | ||
func (e *DefaultEventHandler) ActiveLayout(ActiveLayout) {} | ||
func (e *DefaultEventHandler) OpenWindow(OpenWindow) {} | ||
func (e *DefaultEventHandler) CloseWindow(CloseWindow) {} | ||
func (e *DefaultEventHandler) MoveWindow(MoveWindow) {} | ||
func (e *DefaultEventHandler) OpenLayer(OpenLayer) {} | ||
func (e *DefaultEventHandler) CloseLayer(CloseLayer) {} | ||
func (e *DefaultEventHandler) SubMap(SubMap) {} | ||
func (e *DefaultEventHandler) Screencast(Screencast) {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
module github.com/thiagokokada/hyprland-go | ||
|
||
retract v0.0.3 // Published too soon without proper event API consideration. | ||
|
||
go 1.20 |