fix(calls): call, mini and gallery windows show up in screenshots again
- Only the share bar and share border use WDA_EXCLUDEFROMCAPTURE, like Teams - The call window no longer drops out of captures during a screen share, so Snipping Tool sees it - GUARDRAILS "Call windows" names the rule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -24,7 +24,7 @@ Rules for every change, by people and by agents. If a rule here and a habit else
24
24
| Local bugs | Fix Teams bugs that are purely local (rendering, scroll, focus). Anything touching server data or other people stays as Teams does it. |
25
25
| Performance | Faster, less memory, offline reading from the cache. |
26
26
| Platform | OS-native toasts, tray, title bar and sounds. |
27
| Call windows | Like Teams (Daniel 2026-11-11, replaces the 2026-10-17 deviation): a call or meeting opens in its own window, the main window stays free for chats; a window share minimizes the call window like Teams. Layout and gallery behaviour match Teams. |
27
| Call windows | Like Teams (Daniel 2026-11-11, replaces the 2026-10-17 deviation): a call or meeting opens in its own window, the main window stays free for chats; a window share minimizes the call window like Teams. Layout and gallery behaviour match Teams. Only the share bar and the share border stay out of captures; call, mini and gallery windows show up in screenshots like in Teams (Daniel 2026-11-12). |
28
28
| Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically unless the user turned review off (Settings > MCP) or granted a time window; no own message formats. |
29
29
| Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. |
30
30
@@ -24,7 +24,7 @@ Rules for every change, by people and by agents. If a rule here and a habit else24
| Local bugs | Fix Teams bugs that are purely local (rendering, scroll, focus). Anything touching server data or other people stays as Teams does it. |24
| Local bugs | Fix Teams bugs that are purely local (rendering, scroll, focus). Anything touching server data or other people stays as Teams does it. |25
| Performance | Faster, less memory, offline reading from the cache. |25
| Performance | Faster, less memory, offline reading from the cache. |26
| Platform | OS-native toasts, tray, title bar and sounds. |26
| Platform | OS-native toasts, tray, title bar and sounds. |27
| Call windows | Like Teams (Daniel 2026-11-11, replaces the 2026-10-17 deviation): a call or meeting opens in its own window, the main window stays free for chats; a window share minimizes the call window like Teams. Layout and gallery behaviour match Teams. |27
| Call windows | Like Teams (Daniel 2026-11-11, replaces the 2026-10-17 deviation): a call or meeting opens in its own window, the main window stays free for chats; a window share minimizes the call window like Teams. Layout and gallery behaviour match Teams. Only the share bar and the share border stay out of captures; call, mini and gallery windows show up in screenshots like in Teams (Daniel 2026-11-12). |28
| Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically unless the user turned review off (Settings > MCP) or granted a time window; no own message formats. |28
| Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically unless the user turned review off (Settings > MCP) or granted a time window; no own message formats. |29
| Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. |29
| Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. |30
30
@@ -34,8 +34,6 @@ pub fn show_window_inactive(_handle: NativeHandle) {}
34
34
35
35
pub fn exclude_from_capture(_handle: NativeHandle) {}
36
36
37
pub fn include_in_capture(_handle: NativeHandle) {}
38
39
37
#[cfg(target_os = "linux")]
40
38
pub fn make_window_click_through(window: &Window) {
41
39
super::x11_input::make_input_transparent(window);
@@ -34,8 +34,6 @@ pub fn show_window_inactive(_handle: NativeHandle) {}34
34
35
pub fn exclude_from_capture(_handle: NativeHandle) {}35
pub fn exclude_from_capture(_handle: NativeHandle) {}36
36
37
pub fn include_in_capture(_handle: NativeHandle) {}38
39
#[cfg(target_os = "linux")]37
#[cfg(target_os = "linux")]40
pub fn make_window_click_through(window: &Window) {38
pub fn make_window_click_through(window: &Window) {41
super::x11_input::make_input_transparent(window);39
super::x11_input::make_input_transparent(window);@@ -36,7 +36,7 @@ use windows::Win32::UI::WindowsAndMessaging::{
36
36
SW_SHOWNOACTIVATE, SWP_FRAMECHANGED, SWP_NOACTIVATE, SWP_NOMOVE, SWP_NOOWNERZORDER, SWP_NOSIZE,
37
37
SWP_NOZORDER, SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, SendMessageW, SetForegroundWindow,
38
38
SetLayeredWindowAttributes, SetWindowDisplayAffinity, SetWindowLongPtrW, SetWindowPos,
39
ShowWindow, SystemParametersInfoW, WDA_EXCLUDEFROMCAPTURE, WDA_NONE, WM_SETICON, WS_CAPTION,
39
ShowWindow, SystemParametersInfoW, WDA_EXCLUDEFROMCAPTURE, WM_SETICON, WS_CAPTION,
40
40
WS_EX_LAYERED, WS_EX_NOACTIVATE, WS_EX_TOPMOST, WS_EX_TRANSPARENT, WS_POPUP, WS_THICKFRAME,
41
41
};
42
42
use windows::core::{BOOL, PCWSTR, w};
@@ -274,12 +274,6 @@ pub fn exclude_from_capture(handle: NativeHandle) {
274
274
}
275
275
}
276
276
277
pub fn include_in_capture(handle: NativeHandle) {
278
unsafe {
279
let _ = SetWindowDisplayAffinity(hwnd(handle), WDA_NONE);
280
}
281
}
282
283
277
pub fn make_window_click_through(window: &Window) {
284
278
if let Some(handle) = native_handle(window) {
285
279
make_click_through(handle);
@@ -36,7 +36,7 @@ use windows::Win32::UI::WindowsAndMessaging::{36
SW_SHOWNOACTIVATE, SWP_FRAMECHANGED, SWP_NOACTIVATE, SWP_NOMOVE, SWP_NOOWNERZORDER, SWP_NOSIZE,36
SW_SHOWNOACTIVATE, SWP_FRAMECHANGED, SWP_NOACTIVATE, SWP_NOMOVE, SWP_NOOWNERZORDER, SWP_NOSIZE,37
SWP_NOZORDER, SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, SendMessageW, SetForegroundWindow,37
SWP_NOZORDER, SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, SendMessageW, SetForegroundWindow,38
SetLayeredWindowAttributes, SetWindowDisplayAffinity, SetWindowLongPtrW, SetWindowPos,38
SetLayeredWindowAttributes, SetWindowDisplayAffinity, SetWindowLongPtrW, SetWindowPos,39
ShowWindow, SystemParametersInfoW, WDA_EXCLUDEFROMCAPTURE, WDA_NONE, WM_SETICON, WS_CAPTION,39
ShowWindow, SystemParametersInfoW, WDA_EXCLUDEFROMCAPTURE, WM_SETICON, WS_CAPTION,40
WS_EX_LAYERED, WS_EX_NOACTIVATE, WS_EX_TOPMOST, WS_EX_TRANSPARENT, WS_POPUP, WS_THICKFRAME,40
WS_EX_LAYERED, WS_EX_NOACTIVATE, WS_EX_TOPMOST, WS_EX_TRANSPARENT, WS_POPUP, WS_THICKFRAME,41
};41
};42
use windows::core::{BOOL, PCWSTR, w};42
use windows::core::{BOOL, PCWSTR, w};@@ -274,12 +274,6 @@ pub fn exclude_from_capture(handle: NativeHandle) {274
}274
}275
}275
}276
276
277
pub fn include_in_capture(handle: NativeHandle) {278
unsafe {279
let _ = SetWindowDisplayAffinity(hwnd(handle), WDA_NONE);280
}281
}282
283
pub fn make_window_click_through(window: &Window) {277
pub fn make_window_click_through(window: &Window) {284
if let Some(handle) = native_handle(window) {278
if let Some(handle) = native_handle(window) {285
make_click_through(handle);279
make_click_through(handle);@@ -37,6 +37,17 @@ enum Role {
37
37
Border(usize),
38
38
}
39
39
40
impl Role {
41
fn surface(self) -> Surface {
42
match self {
43
Role::Bar => Surface::ShareBar,
44
Role::Mini => Surface::Mini,
45
Role::Gallery => Surface::Gallery,
46
Role::Border(_) => Surface::Border,
47
}
48
}
49
}
50
40
51
struct Placed {
41
52
handle: AnyWindowHandle,
42
53
native: Option<NativeHandle>,
@@ -114,7 +125,6 @@ pub struct CallWindows {
114
125
gallery_seen: Option<(i32, i32)>,
115
126
gallery_layout: GalleryLayout,
116
127
speaker_only: bool,
117
main_excluded: bool,
118
128
minimized_for_share: bool,
119
129
ticks: u32,
120
130
}
@@ -194,7 +204,6 @@ impl CallWindows {
194
204
gallery_seen: None,
195
205
gallery_layout: gallery_layout(0, true, f32::MAX),
196
206
speaker_only: false,
197
main_excluded: false,
198
207
minimized_for_share: false,
199
208
ticks: 0,
200
209
};
@@ -315,7 +324,6 @@ impl CallWindows {
315
324
self.stage_native = None;
316
325
self.minimized = false;
317
326
self.minimized_for_share = false;
318
self.main_excluded = false;
319
327
self.seen_viewing = None;
320
328
}
321
329
@@ -389,7 +397,6 @@ impl CallWindows {
389
397
&& self.share.is_none()
390
398
&& self.windows.is_empty()
391
399
&& self.opening.is_empty()
392
&& !self.main_excluded
393
400
}
394
401
395
402
fn tick(&mut self, cx: &mut Context<Self>) -> Duration {
@@ -402,7 +409,6 @@ impl CallWindows {
402
409
self.refresh_stage_window();
403
410
self.sync_viewing(cx);
404
411
self.sync_share(slow, cx);
405
self.sync_capture_exclusion();
406
412
self.sync_pop_out(cx);
407
413
self.sync_monitor(cx);
408
414
if slow {
@@ -543,22 +549,6 @@ impl CallWindows {
543
549
}
544
550
}
545
551
546
fn sync_capture_exclusion(&mut self) {
547
let Some(native) = self.stage_native else {
548
return;
549
};
550
let wanted = excluded_from_capture(Surface::Main, self.local_share_mode());
551
if wanted == self.main_excluded {
552
return;
553
}
554
self.main_excluded = wanted;
555
if wanted {
556
platform::exclude_from_capture(native);
557
} else {
558
platform::include_in_capture(native);
559
}
560
}
561
562
552
fn end_share(&mut self, cx: &mut Context<Self>) {
563
553
if self.share.take().is_none() {
564
554
return;
@@ -787,7 +777,9 @@ impl CallWindows {
787
777
.flatten();
788
778
if let Some(native) = native {
789
779
platform::prepare_toast_window(native);
790
platform::exclude_from_capture(native);
780
if excluded_from_capture(role.surface()) {
781
platform::exclude_from_capture(native);
782
}
791
783
}
792
784
if matches!(role, Role::Border(_)) {
793
785
handle
@@ -37,6 +37,17 @@ enum Role {37
Border(usize),37
Border(usize),38
}38
}39
39
40
impl Role {41
fn surface(self) -> Surface {42
match self {43
Role::Bar => Surface::ShareBar,44
Role::Mini => Surface::Mini,45
Role::Gallery => Surface::Gallery,46
Role::Border(_) => Surface::Border,47
}48
}49
}50
40
struct Placed {51
struct Placed {41
handle: AnyWindowHandle,52
handle: AnyWindowHandle,42
native: Option<NativeHandle>,53
native: Option<NativeHandle>,@@ -114,7 +125,6 @@ pub struct CallWindows {114
gallery_seen: Option<(i32, i32)>,125
gallery_seen: Option<(i32, i32)>,115
gallery_layout: GalleryLayout,126
gallery_layout: GalleryLayout,116
speaker_only: bool,127
speaker_only: bool,117
main_excluded: bool,118
minimized_for_share: bool,128
minimized_for_share: bool,119
ticks: u32,129
ticks: u32,120
}130
}@@ -194,7 +204,6 @@ impl CallWindows {194
gallery_seen: None,204
gallery_seen: None,195
gallery_layout: gallery_layout(0, true, f32::MAX),205
gallery_layout: gallery_layout(0, true, f32::MAX),196
speaker_only: false,206
speaker_only: false,197
main_excluded: false,198
minimized_for_share: false,207
minimized_for_share: false,199
ticks: 0,208
ticks: 0,200
};209
};@@ -315,7 +324,6 @@ impl CallWindows {315
self.stage_native = None;324
self.stage_native = None;316
self.minimized = false;325
self.minimized = false;317
self.minimized_for_share = false;326
self.minimized_for_share = false;318
self.main_excluded = false;319
self.seen_viewing = None;327
self.seen_viewing = None;320
}328
}321
329
@@ -389,7 +397,6 @@ impl CallWindows {389
&& self.share.is_none()397
&& self.share.is_none()390
&& self.windows.is_empty()398
&& self.windows.is_empty()391
&& self.opening.is_empty()399
&& self.opening.is_empty()392
&& !self.main_excluded393
}400
}394
401
395
fn tick(&mut self, cx: &mut Context<Self>) -> Duration {402
fn tick(&mut self, cx: &mut Context<Self>) -> Duration {@@ -402,7 +409,6 @@ impl CallWindows {402
self.refresh_stage_window();409
self.refresh_stage_window();403
self.sync_viewing(cx);410
self.sync_viewing(cx);404
self.sync_share(slow, cx);411
self.sync_share(slow, cx);405
self.sync_capture_exclusion();406
self.sync_pop_out(cx);412
self.sync_pop_out(cx);407
self.sync_monitor(cx);413
self.sync_monitor(cx);408
if slow {414
if slow {@@ -543,22 +549,6 @@ impl CallWindows {543
}549
}544
}550
}545
551
546
fn sync_capture_exclusion(&mut self) {547
let Some(native) = self.stage_native else {548
return;549
};550
let wanted = excluded_from_capture(Surface::Main, self.local_share_mode());551
if wanted == self.main_excluded {552
return;553
}554
self.main_excluded = wanted;555
if wanted {556
platform::exclude_from_capture(native);557
} else {558
platform::include_in_capture(native);559
}560
}561
562
fn end_share(&mut self, cx: &mut Context<Self>) {552
fn end_share(&mut self, cx: &mut Context<Self>) {563
if self.share.take().is_none() {553
if self.share.take().is_none() {564
return;554
return;@@ -787,7 +777,9 @@ impl CallWindows {787
.flatten();777
.flatten();788
if let Some(native) = native {778
if let Some(native) = native {789
platform::prepare_toast_window(native);779
platform::prepare_toast_window(native);790
platform::exclude_from_capture(native);780
if excluded_from_capture(role.surface()) {781
platform::exclude_from_capture(native);782
}791
}783
}792
if matches!(role, Role::Border(_)) {784
if matches!(role, Role::Border(_)) {793
handle785
handle