Skip to content

Commit

Permalink
battery/dgpu: Filter Xwayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Feb 6, 2024
1 parent ee04d48 commit 4b253ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmic-applet-battery/src/dgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ async fn start_listening(
if enabled {
let mut list = gpu.connected_outputs().await.unwrap_or_default();
if let Some(mut apps) = gpu.app_list(&[]).await {
apps.retain(|app| app.name != "cosmic-comp");
apps.retain(|app| app.name != "cosmic-comp" && app.name != "Xwayland");
list.extend(apps);
}
if output.send(GpuUpdate::On(gpu.path.clone(), gpu.name.clone(), (!list.is_empty()).then_some(list))).await.is_err() {
Expand Down

0 comments on commit 4b253ad

Please sign in to comment.