Skip to content

Commit

Permalink
\#4: fullscreen & stackmode above
Browse files Browse the repository at this point in the history
  • Loading branch information
moolen committed Oct 1, 2018
1 parent ca67cb4 commit e7c236a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ func loop(screens []*screen, noGrab bool, permitEscape bool, customPassword stri
if err != nil {
return err
}
err = ewmh.WmStateSet(Xu, win.Id, []string{"_NET_WM_STATE_FULLSCREEN", "_NET_WM_STATE_ABOVE"})
if err != nil {
return err
}
err = icccm.WmNormalHintsSet(ximg.X, win.Id, &icccm.NormalHints{
Flags: icccm.SizeHintPMinSize | icccm.SizeHintPMaxSize,
MinWidth: uint(screen.Width()),
Expand All @@ -181,11 +185,6 @@ func loop(screens []*screen, noGrab bool, permitEscape bool, customPassword stri

// some WM override this position after mapping
win.Move(screen.X(), screen.Y())
err = ewmh.WmStateReq(Xu, win.Id, ewmh.StateToggle,
"_NET_WM_STATE_FULLSCREEN")
if err != nil {
return err
}
}

// main loop
Expand Down

0 comments on commit e7c236a

Please sign in to comment.