Skip to content

Commit

Permalink
feat(linux): skipping taskbar will now also skip pager (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Aug 29, 2021
1 parent b07c5ec commit e743a78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/linux-skip-taskbar-skips-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": patch
---

`window.set_skip_taskbar()` on Linux will now also skip the pager (Alt+Tab), this matches the behavior on Windows.
5 changes: 4 additions & 1 deletion src/platform_impl/linux/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ impl<T: 'static> EventLoop<T> {
WindowRequest::UserAttention(request_type) => {
window.set_urgency_hint(request_type.is_some())
}
WindowRequest::SetSkipTaskbar(skip) => window.set_skip_taskbar_hint(skip),
WindowRequest::SetSkipTaskbar(skip) => {
window.set_skip_taskbar_hint(skip);
window.set_skip_pager_hint(skip)
}
WindowRequest::CursorIcon(cursor) => {
if let Some(gdk_window) = window.window() {
let display = window.display();
Expand Down

0 comments on commit e743a78

Please sign in to comment.