Skip to content

Commit

Permalink
Window: Fix hide() behavior
Browse files Browse the repository at this point in the history
When hiding to minimized state, don't assume the window will be
unmapped, instead wait for the window manager to change state, which may
also never occur.
  • Loading branch information
Zirias committed Jul 30, 2024
1 parent a095abc commit 8cc1ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/xmoji/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int hide(void *obj)
if (!self->mapped) return 0;
if (self->havewmstate && self->hideState == WS_MINIMIZED)
{
self->mapped = 0;
if (self->state == WS_MINIMIZED) return 0;
xcb_client_message_event_t msg = {
.response_type = XCB_CLIENT_MESSAGE,
.format = 32,
Expand Down

0 comments on commit 8cc1ca9

Please sign in to comment.