feat(xwayland): xwayland feature

This commit is contained in:
Nova
2023-07-23 09:04:22 -04:00
parent 3ce3fadb8d
commit 062c63af2b
6 changed files with 34 additions and 20 deletions

View File

@@ -1,8 +1,6 @@
use crate::{
core::client::Client,
wayland::{xwayland::DISPLAY, WAYLAND_DISPLAY},
STARDUST_INSTANCE,
};
#[cfg(feature = "xwayland")]
use crate::wayland::xwayland::DISPLAY;
use crate::{core::client::Client, wayland::WAYLAND_DISPLAY, STARDUST_INSTANCE};
use super::{
items::{ItemAcceptor, TypeInfo},
@@ -139,6 +137,7 @@ pub fn get_connection_environment_flex(
#[cfg(feature = "wayland")]
{
var_env_insert!(env, WAYLAND_DISPLAY);
#[cfg(feature = "xwayland")]
var_env_insert!(env, DISPLAY);
env.insert("GDK_BACKEND".to_string(), "wayland".to_string());
env.insert("QT_QPA_PLATFORM".to_string(), "wayland".to_string());