openbsd-ports/x11/i3/patches/patch-src_manage_c
rsadowski 882fe26d9a Update i3 to 4.16
Maintainer timeout

feedback and ok tb, tested from Josh Grosse
2019-01-13 12:48:10 +00:00

28 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_manage_c,v 1.22 2019/01/13 12:48:10 rsadowski Exp $
Fix size hints for ssh-askpass
Index: src/manage.c
--- src/manage.c.orig
+++ src/manage.c
@@ -499,10 +499,16 @@ void manage_window(xcb_window_t window, xcb_get_window
if (cwindow->dock)
want_floating = false;
- /* Plasma windows set their geometry in WM_SIZE_HINTS. */
+ /*
+ * Plasma windows set their geometry in WM_SIZE_HINTS. Note that
+ * these fields are obsolete, so ignore unless there is a width and
+ * a height specified.
+ */
if ((wm_size_hints.flags & XCB_ICCCM_SIZE_HINT_US_POSITION || wm_size_hints.flags & XCB_ICCCM_SIZE_HINT_P_POSITION) &&
- (wm_size_hints.flags & XCB_ICCCM_SIZE_HINT_US_SIZE || wm_size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE)) {
- DLOG("We are setting geometry according to wm_size_hints x=%d y=%d w=%d h=%d\n",
+ (wm_size_hints.flags & XCB_ICCCM_SIZE_HINT_US_SIZE || wm_size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE) &&
+ wm_size_hints.width != 0 && wm_size_hints.height != 0) {
+ DLOG("We are setting geometry according to the obsolete wm_size_hints "
+ "x=%d y=%d w=%d h=%d\n",
wm_size_hints.x, wm_size_hints.y, wm_size_hints.width, wm_size_hints.height);
geom->x = wm_size_hints.x;
geom->y = wm_size_hints.y;