2024/05/07

2024-05-07 00:32:23 +0200tremon(~tremon@83.80.159.219) (Quit: getting boxed in)
2024-05-07 01:28:50 +0200 <liskin> acidbong: there was a PR related to this as well, it might still be open
2024-05-07 01:29:38 +0200 <liskin> Somehow I've never really found this to be a problem so that's probably why there's little motivation to fix it
2024-05-07 01:30:08 +0200 <liskin> acidbong: can you perhaps share what's the usecase where it matters?
2024-05-07 01:30:25 +0200 <liskin> (I'll head to bed soon but I'll be around tomorrow)
2024-05-07 01:45:03 +0200mekeor(~user@2001:a61:10ae:1901:3241:bc6e:53bb:fccc) (Quit: towards emacs as interface to a cybernetic council communism)
2024-05-07 02:00:45 +0200sajenim(~sajenim@user/sajenim)
2024-05-07 04:22:07 +0200td_(~td@i53870908.versanet.de) (Ping timeout: 272 seconds)
2024-05-07 04:23:25 +0200td_(~td@i53870936.versanet.de)
2024-05-07 04:44:05 +0200terrorjack(~terrorjac@2a01:4f8:c17:87f8::) (Quit: The Lounge - https://thelounge.chat)
2024-05-07 04:47:10 +0200terrorjack(~terrorjac@2a01:4f8:c17:87f8::)
2024-05-07 05:36:25 +0200catman(~catman@user/catman) (Quit: WeeChat 4.3.0-dev)
2024-05-07 05:42:29 +0200catman(~catman@user/catman)
2024-05-07 06:03:29 +0200sajenim(~sajenim@user/sajenim) (Ping timeout: 268 seconds)
2024-05-07 06:47:07 +0200ChubaDuba(~ChubaDuba@37.112.224.172)
2024-05-07 06:58:20 +0200redgloboli(~redglobol@user/redgloboli)
2024-05-07 07:17:36 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 260 seconds)
2024-05-07 07:27:35 +0200todi1(~todi@p57803331.dip0.t-ipconnect.de)
2024-05-07 07:29:45 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 07:33:31 +0200todi1(~todi@p57803331.dip0.t-ipconnect.de) (Ping timeout: 268 seconds)
2024-05-07 07:34:24 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 260 seconds)
2024-05-07 07:39:55 +0200 <Solid> No borders no problem :]
2024-05-07 07:46:54 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 07:52:36 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 260 seconds)
2024-05-07 08:00:13 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752)
2024-05-07 08:05:06 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 08:10:46 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 246 seconds)
2024-05-07 08:18:25 +0200sajenim(~sajenim@user/sajenim)
2024-05-07 08:24:47 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 08:25:42 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752) (Remote host closed the connection)
2024-05-07 08:31:01 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 272 seconds)
2024-05-07 08:39:10 +0200 <acidbong> anyway, liskin, screenshots are incoming
2024-05-07 08:39:11 +0200 <acidbong> the one with an orange/black bar is DWM, notice the even padding in the floating terminal (I specifically set it to 2 px): DWM seems to draw borders outside of the window
2024-05-07 08:39:11 +0200 <acidbong> the one with a monotone bar is Xmonad, notice that the padding in the floating terminal got all weird: the terminal already set the size 140x38 characters, but Xmonad seems to "eat out" the window with its borders
2024-05-07 08:39:45 +0200 <acidbong> https://uploads.hmm.st/acidbong/e9mUjPNkG69p/sqrt-20240507_092348.png
2024-05-07 08:39:45 +0200 <acidbong> https://uploads.hmm.st/acidbong/FixzrLE9ChRF/sqrt-20240507_093303.png
2024-05-07 08:43:09 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 08:49:22 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 268 seconds)
2024-05-07 08:52:21 +0200justache(~justache@user/justache) (Quit: ZNC 1.8.2 - https://znc.in)
2024-05-07 08:53:30 +0200justache(~justache@user/justache)
2024-05-07 09:02:02 +0200 <acidbong> this comment (https://github.com/xmonad/xmonad/pull/207#issuecomment-642626754) shows exactly how Xmonad shapes windows
2024-05-07 09:02:22 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 09:06:41 +0200 <acidbong> i'll test with a workaround from #198's penultimate comment
2024-05-07 09:08:11 +0200todi(~todi@p57803331.dip0.t-ipconnect.de) (Quit: ZNC - https://znc.in)
2024-05-07 09:08:24 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 255 seconds)
2024-05-07 09:09:28 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 09:15:17 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 240 seconds)
2024-05-07 09:25:46 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752)
2024-05-07 09:27:26 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 09:33:46 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 268 seconds)
2024-05-07 09:44:58 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 09:48:18 +0200ChubaDuba_(~ChubaDuba@5.167.114.29)
2024-05-07 09:51:21 +0200ChubaDuba(~ChubaDuba@37.112.224.172) (Ping timeout: 268 seconds)
2024-05-07 09:51:27 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 272 seconds)
2024-05-07 10:01:15 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752) (Remote host closed the connection)
2024-05-07 10:01:35 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752)
2024-05-07 10:03:00 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 10:09:04 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752) (Remote host closed the connection)
2024-05-07 10:09:14 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 256 seconds)
2024-05-07 10:10:27 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 10:12:56 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752)
2024-05-07 10:16:22 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 255 seconds)
2024-05-07 10:28:53 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 10:34:48 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 255 seconds)
2024-05-07 10:46:05 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 10:57:23 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 256 seconds)
2024-05-07 11:10:28 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 11:13:30 +0200ft(~ft@p3e9bc1bf.dip0.t-ipconnect.de) (Quit: leaving)
2024-05-07 11:16:27 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 268 seconds)
2024-05-07 11:28:27 +0200 <liskin> acidbong: strange, if I ask urxvt to open a 80x24 terminal, and ask xmonad for the next window to be floating, I get a 80x24 terminal
2024-05-07 11:29:01 +0200 <liskin> it'd be 79x23 with a big black padding if things weren't working as they should, right?
2024-05-07 11:29:27 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 11:32:14 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752) (Ping timeout: 250 seconds)
2024-05-07 11:35:29 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 256 seconds)
2024-05-07 11:40:07 +0200 <liskin> but yeah with xeyes I do get a window that isn't large enough, hm
2024-05-07 11:45:33 +0200 <liskin> hm, right, floatLocation does account for borders, but it fails to account for the fact that initially the window doesn't have borders but then xmonad adds borders laters
2024-05-07 12:05:34 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 12:05:37 +0200ChubaDuba_(~ChubaDuba@5.167.114.29) (Quit: Leaving)
2024-05-07 12:05:48 +0200 <liskin> well anyway, I'm looking into it :-)
2024-05-07 12:18:59 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 256 seconds)
2024-05-07 12:29:09 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 12:49:43 +0200mekeor(~user@2001:a61:10ae:1901:3241:bc6e:53bb:fccc)
2024-05-07 12:50:13 +0200 <liskin> the "workaround from #198's penultimate comment" is a dead end, it's crap that happens to kinda work totally accidentally and might/will break things
2024-05-07 12:52:23 +0200 <liskin> the real issue is that floatLocation only takes into account the current border width, which is 0 when it's first invoked, but then xmonad adds borders and the float size isn't adjusted
2024-05-07 12:53:19 +0200 <liskin> floatLocation could theoretically use the future border width, but we don't really know what's it gonna be because there's all sorts of xmonad-contrib modules messing up with border width
2024-05-07 12:54:11 +0200 <liskin> so I'm thinking a manageHook that adjusts the float location but lets you skip that adjustment if you know other parts of your manageHook/layoutHook will clear the borders
2024-05-07 12:54:24 +0200 <liskin> should be easy to do… later today
2024-05-07 13:02:48 +0200 <liskin> https://github.com/xmonad/xmonad/pull/207 is an alternative - but it's ugly because now Rectangle means something else for floating and non-floating windows, so if one grabs a tiled window and starts moving it somewhere, it'll resize
2024-05-07 13:55:51 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 268 seconds)
2024-05-07 14:04:00 +0200 <acidbong> speaking of future events: `willFloat` is already a convenient identifier and is present in the core Xmonad
2024-05-07 14:04:13 +0200 <acidbong> maybe it can be used?
2024-05-07 14:05:43 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 14:20:21 +0200todi(~todi@p57803331.dip0.t-ipconnect.de)
2024-05-07 15:01:13 +0200todi(~todi@p57803331.dip0.t-ipconnect.de) (Ping timeout: 268 seconds)
2024-05-07 15:21:59 +0200ircbrowse_tom(~ircbrowse@user/tomsmeding/bot/ircbrowse-tom)
2024-05-07 15:21:59 +0200Server+cnt
2024-05-07 15:23:16 +0200todi(~todi@p57803331.dip0.t-ipconnect.de)
2024-05-07 15:47:23 +0200Lears(~Leary]@user/Leary/x-0910699)
2024-05-07 15:49:49 +0200[Leary](~Leary]@user/Leary/x-0910699) (Ping timeout: 255 seconds)
2024-05-07 16:08:08 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 268 seconds)
2024-05-07 16:08:24 +0200catman(~catman@user/catman) (Quit: WeeChat 4.3.0-dev)
2024-05-07 16:09:59 +0200catman(~catman@user/catman)
2024-05-07 16:13:34 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 16:35:07 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 256 seconds)
2024-05-07 16:41:30 +0200 <liskin> it can be used but it's not actually needed
2024-05-07 16:43:11 +0200 <liskin> although… manageHooks are a weird beast…
2024-05-07 16:44:15 +0200 <liskin> but the Endo WindowSet part of the managehook is executed _after_ manage made the window floating, so we don't need to guess, we know whether the window is or isn't floating
2024-05-07 16:47:21 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 16:51:34 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 246 seconds)
2024-05-07 16:55:40 +0200andrewjf(~andrewjf@70.90.143.154)
2024-05-07 17:00:29 +0200todi(~todi@p57803331.dip0.t-ipconnect.de) (Ping timeout: 240 seconds)
2024-05-07 17:03:01 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 17:05:04 +0200andrewjf(~andrewjf@70.90.143.154) (Quit: Client closed)
2024-05-07 17:42:10 +0200sajenim(~sajenim@user/sajenim) (Ping timeout: 268 seconds)
2024-05-07 18:46:55 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 268 seconds)
2024-05-07 18:47:42 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 18:54:57 +0200 <liskin> acidbong: what you mean by "no longer works in xmonad v0.17.2" exactly?
2024-05-07 18:56:41 +0200 <liskin> oh, it indeed doesn't, lol
2024-05-07 18:56:58 +0200 <acidbong> I patched xmonad (luckily with nixos it's easy), rebuild with a short config (only set the terminal, mod4Mask and a floating rule for a terminal with Ranger in it) and tried launching a floating terminal
2024-05-07 18:57:12 +0200 <liskin> and you got the same size as without the patch
2024-05-07 18:57:20 +0200 <liskin> right, I just tried it as well :-)
2024-05-07 18:57:24 +0200 <acidbong> yup
2024-05-07 18:57:39 +0200 <acidbong> i mean, it's 4 years old, many things changed
2024-05-07 18:57:49 +0200 <liskin> I was so invested into understanding why the fuck it doesn't crash xmonad I forgot to check whether it does anything at all
2024-05-07 18:58:54 +0200 <liskin> that also probably means my understanding of why it works is wrong
2024-05-07 18:59:22 +0200 <liskin> or something :-)
2024-05-07 20:03:21 +0200todi(~todi@p57803331.dip0.t-ipconnect.de)
2024-05-07 20:14:41 +0200todi1(~todi@p57803331.dip0.t-ipconnect.de)
2024-05-07 20:19:58 +0200todi(~todi@p57803331.dip0.t-ipconnect.de) (Remote host closed the connection)
2024-05-07 20:20:23 +0200todi1todi
2024-05-07 20:43:31 +0200ft(~ft@p3e9bc1bf.dip0.t-ipconnect.de)
2024-05-07 21:03:08 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e) (Ping timeout: 260 seconds)
2024-05-07 21:08:51 +0200defjam(~defjam@2a02:c7e:2807:b900:19c6:3bfe:1d9d:c22e)
2024-05-07 22:57:35 +0200L29Ah(~L29Ah@wikipedia/L29Ah) (Ping timeout: 252 seconds)