Skip to content

Commit

Permalink
Move setting of type hint to more appropriate spot
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpanic8 committed Mar 17, 2019
1 parent 106ae47 commit 84a96d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Graphics/UI/GIGtkStrut.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ setupStrutWindow StrutConfig
screenWidth <- maximum <$> mapM getFullX allGeometries
screenHeight <- maximum <$> mapM getFullY allGeometries

Gtk.windowSetTypeHint window Gdk.WindowTypeHintDock
geometry <- Gdk.newZeroGeometry

monitorGeometry <- Gdk.monitorGetGeometry monitor
Expand Down Expand Up @@ -123,6 +122,7 @@ setupStrutWindow StrutConfig
LeftPos -> (monitorX + xpadding, yAligned)
RightPos -> (monitorX + monitorWidth - width - xpadding, yAligned)

Gtk.windowSetTypeHint window Gdk.WindowTypeHintDock
Gtk.windowSetScreen window screen
Gtk.windowMove window xPos yPos
Gtk.windowSetKeepBelow window True
Expand Down

0 comments on commit 84a96d5

Please sign in to comment.