1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 06:54:45 +03:00
wezterm/window
blukai a0a415d1cb improve x11 startup times
related issue: wez#5802

requesting `GetScreenResourcesCurrent` instead of `GetScreenResources`
brings startup times down from 1.5 seconds to 30 microseconds on my
machine (measured with dumb printlns).

according to some findings `GetScreenResourcesCurrent` may return
nothing, so i kept `GetScreenResources` there as a fallback, just in
case, although I'm not 100% sure that it's necessary. see:
- c234700c83/src/plugins/platforms/xcb/qxcbscreen.cpp (L963)
- c234700c83/src/plugins/platforms/xcb/qxcbconnection_screens.cpp (L390)

also worth to note that i3 does not rely on
`xcb_randr_get_screen_resources`, but only on
`xcb_randr_get_screen_resources_current`, see:
- https://github.com/search?q=repo%3Ai3%2Fi3%20get_screen_resources&type=code
2024-08-11 11:28:35 -07:00
..
examples Accept drag and drop of URLs from browsers and plain text on X11 2024-05-05 12:48:09 -07:00
src improve x11 startup times 2024-08-11 11:28:35 -07:00
build.rs Fix clippy lints 2024-05-04 16:09:38 -07:00
Cargo.toml Upgrade smithay-client-toolkit to 0.19 2024-07-13 10:49:45 -07:00
LICENSE.md Add missing license files 2022-08-17 07:19:12 -07:00