feat: subsurfaces
This commit is contained in:
parent
0f37c9922d
commit
93bc4bbd88
33 changed files with 1898 additions and 2651 deletions
|
|
@ -6,6 +6,7 @@ use cctk::sctk::{
|
|||
delegate_xdg_popup, reexports::client::Proxy,
|
||||
shell::xdg::popup::PopupHandler,
|
||||
};
|
||||
use winit::dpi::LogicalSize;
|
||||
|
||||
impl PopupHandler for SctkState {
|
||||
fn configure(
|
||||
|
|
@ -24,6 +25,9 @@ impl PopupHandler for SctkState {
|
|||
};
|
||||
let first = sctk_popup.last_configure.is_none();
|
||||
_ = sctk_popup.last_configure.replace(configure.clone());
|
||||
let mut guard = sctk_popup.common.lock().unwrap();
|
||||
guard.size =
|
||||
LogicalSize::new(configure.width as u32, configure.height as u32);
|
||||
|
||||
self.sctk_events.push(SctkEvent::PopupEvent {
|
||||
variant: PopupEventVariant::Configure(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue