From 5bc3846d592dc7e9acb81f709cc7257ae594bc77 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 11 Jul 2024 08:55:51 +0800 Subject: [PATCH] Fix #14106 Windows title bar broken (#14122) Release Notes: - N/A ---- Fix #14106 Sorry, the previous change in #14063 I have made a mistake. I shouldn't have changed the previous logic. ```diff - if !state_ptr.hide_title_bar { + if state_ptr.hide_title_bar { ``` ## Test https://github.com/zed-industries/zed/assets/5518/e03fbcac-be6b-4a9d-8937-d3b5e236b564 And the popup window limit is still works. --- crates/gpui/src/platform/windows/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/windows/events.rs b/crates/gpui/src/platform/windows/events.rs index cdc8949b599cd3bb9b810efb5588ac62b43d5fb9..583ff1a96b137f6d572aa72244524ff5cde412a4 100644 --- a/crates/gpui/src/platform/windows/events.rs +++ b/crates/gpui/src/platform/windows/events.rs @@ -804,7 +804,7 @@ fn handle_hit_test_msg( if !state_ptr.is_movable { return None; } - if state_ptr.hide_title_bar { + if !state_ptr.hide_title_bar { return None; }