Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: CI

# Work happens on dev and lands on main with `git promote`, so main is the only branch worth
# spending runners on. workflow_dispatch is there to repeat a run without pushing.
# Work happens on dev and lands on main with `git promote` or through a pull request, so main and
# the pull requests against it are the only places worth spending runners on. workflow_dispatch is
# there to repeat a run without pushing.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -74,6 +77,30 @@ jobs:
arch: ${{ matrix.qt_arch }}
cache: true

# The MSVC STL requires a minimum Clang version, which follows the Clang that Visual Studio
# ships, and rejects an older compiler with STL1000. The standalone LLVM of the runner image
# precedes the LLVM of Visual Studio on the path and lags behind it. MSVC 14.52 broke this
# job that way, therefore the job puts the LLVM of Visual Studio first.
- name: Use the clang-cl of Visual Studio
if: matrix.platform == 'windows-clang-cl'
shell: bash
run: |
llvm_bin="$(cygpath -u "$VCINSTALLDIR")/Tools/Llvm/x64/bin"
test -x "$llvm_bin/clang-cl.exe"
cygpath -w "$llvm_bin" >> "$GITHUB_PATH"

- name: Check the clang-cl in use
if: matrix.platform == 'windows-clang-cl'
shell: bash
run: |
compiler="$(command -v clang-cl)"
echo "$compiler"
clang-cl --version
case "$compiler" in
*/VC/Tools/Llvm/x64/bin/*) ;;
*) echo "clang-cl is not the one of Visual Studio"; exit 1 ;;
esac

# Everything on, so that each job compiles all three libraries and both examples. The
# examples are the only thing here that uses the public API the way a caller does.
- name: Configure
Expand Down
3 changes: 2 additions & 1 deletion src/core/contexts/win32windowcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,9 @@ namespace QWK {
// Win+Up or snapping) and native child windows then receive WM_NCCALCSIZE
// too. They must keep the default handling, otherwise they get the top-level
// frame adjustments and their client area is shifted.
// See https://github.com/stdware/qwindowkit/issues/256
if (lastMessageContext &&
g_wndProcHash->value(msg->hwnd) == lastMessageContext) {
reinterpret_cast<HWND>(lastMessageContext->windowId()) == msg->hwnd) {
LRESULT res;
if (lastMessageContext->nonClientCalcSizeHandler(
msg->hwnd, msg->message, msg->wParam, msg->lParam, &res)) {
Expand Down
Loading