xwayland: Allow pasting into fullscreen surfaces
This commit is contained in:
parent
0c95871bd0
commit
2e2ca3eda0
1 changed files with 11 additions and 3 deletions
|
|
@ -146,10 +146,18 @@ impl Common {
|
||||||
.last_active()
|
.last_active()
|
||||||
.get_keyboard()
|
.get_keyboard()
|
||||||
{
|
{
|
||||||
if let Some(KeyboardFocusTarget::Element(mapped)) = keyboard.current_focus() {
|
match keyboard.current_focus() {
|
||||||
if let Some(surface) = mapped.active_window().x11_surface() {
|
Some(KeyboardFocusTarget::Element(mapped)) => {
|
||||||
return surface.xwm_id().unwrap() == xwm;
|
if let Some(surface) = mapped.active_window().x11_surface() {
|
||||||
|
return surface.xwm_id().unwrap() == xwm;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Some(KeyboardFocusTarget::Fullscreen(surface)) => {
|
||||||
|
if let Some(surface) = surface.x11_surface() {
|
||||||
|
return surface.xwm_id().unwrap() == xwm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue