Skip to content

Commit

Permalink
fix: inline_preedit && fullscreen causing dead lock when there's no c…
Browse files Browse the repository at this point in the history
…andidates.
  • Loading branch information
lotem committed Jul 26, 2013
1 parent 2ca71a3 commit deb0bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WeaselUI/StandardLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ void StandardLayout::UpdateStatusIconLayout(int* width, int* height)

bool StandardLayout::IsInlinePreedit() const
{
return _style.inline_preedit && (_style.client_caps & weasel::INLINE_PREEDIT_CAPABLE) != 0;
return _style.inline_preedit && (_style.client_caps & weasel::INLINE_PREEDIT_CAPABLE) != 0 &&
_style.layout_type != LAYOUT_VERTICAL_FULLSCREEN && _style.layout_type != LAYOUT_HORIZONTAL_FULLSCREEN;
}

bool StandardLayout::ShouldDisplayStatusIcon() const
Expand Down

0 comments on commit deb0bb2

Please sign in to comment.