aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2021-10-20 15:40:50 +0200
committerIsaac Freund <mail@isaacfreund.com>2021-10-20 15:40:50 +0200
commite447e1b41fbb4fa210e0a2cf8ecb1e3ac932ab32 (patch)
tree249461e4107eb135be3b5291009b998030a3a72a
parentc84fd1a936b6122bf1f477b513001a4902a0d73e (diff)
downloadriver-e447e1b41fbb4fa210e0a2cf8ecb1e3ac932ab32.tar.gz
river-e447e1b41fbb4fa210e0a2cf8ecb1e3ac932ab32.tar.xz
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.
-rw-r--r--river/XwaylandView.zig13
1 files changed, 9 insertions, 4 deletions
diff --git a/river/XwaylandView.zig b/river/XwaylandView.zig
index 03b8787..aac9af6 100644
--- a/river/XwaylandView.zig
+++ b/river/XwaylandView.zig
@@ -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 {