Skip to content

Commit

Permalink
Fix incorrect X11 dock/panel placement (#2056)
Browse files Browse the repository at this point in the history
* set initial state wm hint to withdrawn (fix #2046)

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
  • Loading branch information
heavyjoost authored Oct 10, 2024
1 parent b05810d commit ebef880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ void x11_init_window(lua::state &l, bool own) {
#endif /* BUILD_XSHAPE */
if (own_window_type.get(l) == window_type::DOCK ||
own_window_type.get(l) == window_type::PANEL) {
// wmHint.initial_state = WithdrawnState;
// Docks and panels MUST have WithdrawnState initially
// See: https://github.com/brndnmtthws/conky/issues/2046
wmHint.initial_state = WithdrawnState;
} else {
wmHint.initial_state = NormalState;
}
Expand Down

0 comments on commit ebef880

Please sign in to comment.