gpui: Activate window on Linux (#7617)
Release Notes: - N/A Hello everyone, it's me again! This is another todo!(linux) thing in gpui. Best Regards, Christian Bergschneider
This commit is contained in:
parent
5175c8963a
commit
862a9512b5
1 changed files with 10 additions and 3 deletions
|
@ -17,7 +17,10 @@ use std::{
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
sync::{self, Arc},
|
sync::{self, Arc},
|
||||||
};
|
};
|
||||||
use xcb::{x, Xid as _};
|
use xcb::{
|
||||||
|
x::{self, StackMode},
|
||||||
|
Xid as _,
|
||||||
|
};
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct Callbacks {
|
struct Callbacks {
|
||||||
|
@ -337,8 +340,12 @@ impl PlatformWindow for LinuxWindow {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo!(linux)
|
fn activate(&self) {
|
||||||
fn activate(&self) {}
|
self.0.xcb_connection.send_request(&x::ConfigureWindow {
|
||||||
|
window: self.0.x_window,
|
||||||
|
value_list: &[x::ConfigWindow::StackMode(StackMode::Above)],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
fn set_title(&mut self, title: &str) {
|
fn set_title(&mut self, title: &str) {
|
||||||
self.0.xcb_connection.send_request(&x::ChangeProperty {
|
self.0.xcb_connection.send_request(&x::ChangeProperty {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue