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

Wm class crash #43

Merged
merged 1 commit into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (c Client) Restore() {
c.MoveResize(geom.X(), geom.Y(), geom.Width(), geom.Height())
}

// Activate makes the client the currently active window
// Activate makes the client the currently active window
func (c Client) Activate() {
ewmh.ActiveWindowReq(state.X, c.window.Id)
}
Expand Down Expand Up @@ -148,6 +148,7 @@ func shouldIgnore(w xproto.Window) bool {
c, err := icccm.WmClassGet(state.X, w)
if err != nil {
log.Warn(err)
return true // c is nil and can't be used below
}

for _, s := range Config.WindowsToIgnore {
Expand Down