Xwayland: always send configure if requested
This seems to fix an issue with mouse input for steam if steam is not started on an output at 0,0. X11 is pretty spooky.
This commit is contained in:
parent
c84fd1a936
commit
e447e1b41f
1 changed files with 9 additions and 4 deletions
|
@ -226,13 +226,18 @@ fn handleRequestConfigure(
|
|||
) void {
|
||||
const self = @fieldParentPtr(Self, "request_configure", listener);
|
||||
|
||||
// Allow xwayland views to set their own dimensions (but not position)
|
||||
// if floating or unmapped
|
||||
if (self.view.surface == null or self.view.pending.float) {
|
||||
// If unmapped, let the client do whatever it wants
|
||||
if (self.view.surface == null) {
|
||||
self.xwayland_surface.configure(event.x, event.y, event.width, event.height);
|
||||
return;
|
||||
}
|
||||
|
||||
// Allow xwayland views to set their own dimensions (but not position) if floating
|
||||
if (self.view.pending.float) {
|
||||
self.view.pending.box.width = event.width;
|
||||
self.view.pending.box.height = event.height;
|
||||
self.configure();
|
||||
}
|
||||
self.configure();
|
||||
}
|
||||
|
||||
fn handleCommit(listener: *wl.Listener(*wlr.Surface), surface: *wlr.Surface) void {
|
||||
|
|
Loading…
Reference in a new issue