server: auto-fullscreen windows that match an output's dimensions

Fixes #93
This commit is contained in:
Shawn Wallace 2025-02-10 22:57:38 -05:00
parent 3944c9a0e4
commit 653391c7c9
4 changed files with 141 additions and 30 deletions

View file

@ -1296,7 +1296,7 @@ impl<C: XConnection> GlobalDispatch<WlOutput, Global> for ServerState<C> {
data: &Global,
data_init: &mut wayland_server::DataInit<'_, Self>,
) {
state.objects.insert_with_key(|key| {
let key = state.objects.insert_with_key(|key| {
let server = data_init.init(resource, key);
let client = state
.clientside
@ -1310,6 +1310,7 @@ impl<C: XConnection> GlobalDispatch<WlOutput, Global> for ServerState<C> {
);
Output::new(client, server).into()
});
state.output_keys.insert(key, ());
}
}
global_dispatch_with_events!(WlDrmServer, WlDrmClient);