Skip to content

Commit

Permalink
Fix an incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Nov 21, 2023
1 parent e0beebf commit ae01822
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window_notxdg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package glfw

// GetWindowHandle returns the window handle. Only implemented for X11 and Wayland currently.
// GetWindowHandle returns the window handle. Only implemented for X11 currently.
func (w *window) GetWindowHandle() string {
return ""
}
2 changes: 1 addition & 1 deletion internal/driver/glfw/window_wayland.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package glfw

// GetWindowHandle returns the window handle. Only implemented for X11 and Wayland currently.
// GetWindowHandle returns the window handle. Only implemented for X11 currently.
func (w *window) GetWindowHandle() string {
return "" // TODO: Find a way to get the Wayland handle for xdg_foreign protocol. Return "wayland:{id}".
}
2 changes: 1 addition & 1 deletion internal/driver/glfw/window_x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package glfw

import "strconv"

// GetWindowHandle returns the window handle. Only implemented for X11 and Wayland currently.
// GetWindowHandle returns the window handle. Only implemented for X11 currently.
func (w *window) GetWindowHandle() string {
xid := uint(w.viewport.GetX11Window())
return "x11:" + strconv.FormatUint(uint64(xid), 16)
Expand Down

0 comments on commit ae01822

Please sign in to comment.