Upstream workarounds
The register of what egui-pop compensates for in its dependencies. Each
entry says what is compensated, where it is tracked upstream, how
egui-pop works around it (the code site carries an // upstream:
comment pointing here) and when the workaround can go.
Reviewed at every egui bump: remove what upstream fixed, update the rest.
How a limit is handled
- Work around it in egui-pop, at the narrowest place, with an
// upstream:comment at the code site. An application or an extension never has to carry the workaround itself. - Search upstream (egui’s issues and pull requests, or the dependency’s) for the same limit. If none exists, file a focused issue with a minimal reproduction, written against upstream’s code alone; a fix, when it is small and clear, goes with it as a pull request.
- Record it here: what is compensated, where it is tracked upstream (“not filed yet” says it must be), the workaround, and when it can go.
- At every egui bump, review the register: remove the workarounds upstream fixed (and their entries), update the rest.
An extension author who meets a limit egui-pop could compensate for everyone opens an issue here, or a pull request adding the entry and its workaround. Workarounds are not part of the extension contract (GOVERNANCE.md): they go when upstream fixes the limit.
egui: a link with selectable labels is announced as a label
- Compensated:
egui::Link(andHyperlink) sets its AccessKit role toLink, then draws its text through the label text selection whenselectable_labelsis on (egui’s default), whose AccessKit update (update_accesskit_for_text_widget, withRole::Label) overwrites the role: screen readers, and tests looking for a link by its role, see a plain label. On egui 0.36.2,ui.linkandui.hyperlink_toreportLabelwith selectable labels on andLinkwith them off. A link scrolled out of view keepsLink, as its text is not drawn. Links drawn by egui_commonmark in the viewer’s pages keep the limit too. - Upstream: fixed by https://github.com/emilk/egui/pull/8574, released in egui 0.37.0; nothing to file.
- Workaround:
egui_pop::api::links::Linksets the role back toLinkon the node after drawing it (crates/egui-pop-api/src/links.rs). egui’s ownHyperlinkon the built-in widgets page keeps the limit. - Remove when: now, egui-pop being on egui 0.37 (check that the text selection keeps the role the widget gave); a follow-up of the move (issue #24).
egui_kittest: no double click from queued events
- Compensated: a double click made of queued events never registers,
because each queued event advances the clock by
step_dt(0.25 s), beyond egui’s 0.3 s double-click delay. - Upstream: https://github.com/emilk/egui/issues/8697
- Workaround:
egui_pop_test::double_click(harness, label)(anddouble_click_at) put the four button events in one frame, so egui sees both clicks within its delay instead ofstep_dtapart. - Remove when: kittest ships a
double_clickhelper or a per-step time.
egui: a scroll area cannot keep the wheel at its end
- What is compensated: a
ScrollAreaat the end of its range leaves the wheel’s delta in the input, so the next scroll area out moves instead, with no option to keep it (the web’soverscroll-behavior: contain). And it clamps its offset after drawing and asks for no repaint, so a body that grew, or lost rows, shows blank room under its last row until something else repaints. - Tracked upstream: not filed yet.
- Workaround:
core::ui::contain_wheel, used by sections, the views andUiPop::scroll_area_contained: after a scroll area, the pointer over it, it clears the delta of the ways it can go from the input, asScrollAreaitself does when it takes a wheel;core::sections::scrolledasks for a repaint when the offset changed since the last pass. - When it can go: when
ScrollAreahas such an option and repaints after clamping.
egui: a scroll area reads no key
- What is compensated: a
ScrollAreareads no key, says neither which ways it may scroll nor whether it has something to scroll on them, and egui’s widgets read keys without taking them from the input (Slider’s arrows, aTextEdit’s Home and End), so nothing after them can tell a key was used. - Tracked upstream: not filed yet.
- Workaround:
core::scroll_keys, behindUiPop::scroll_area: after the content, it reads which ways there are from the bars’ widgets and writes the offset to the area’sState, for the next pass. A focused widget keeps the keys if it is a text input, senses drags or says so (focus::takes_keys). - When it can go: when
ScrollAreahas keys of its own, and a widget’s use of a key can be seen.
egui: a scroll area’s offset cannot be set from outside
- Compensated: egui 0.37 made the offset of a scroll area’s
Stateprivate, with getters (clamped_offset,unclamped_offset) and no setter.ScrollArea::scroll_offsetsets it only for whoever builds the area, andUi::scroll_with_deltaor a scroll target reach only the innermost area being drawn. egui-pop moves areas it did not build: the focus brought into view through every area around it (core::reveal), and the keys of a scroll area (core::scroll_keys). - Upstream: not filed yet (a
State::set_offset, or a public field again). - Workaround:
egui_pop_core::ui::set_scroll_offsetround-trips the state through its serde form (egui’sserdefeature, turned on by egui-pop-core) with the new offset (// upstream:); kinetic scrolling in progress stops there. - Remove when: egui’s scroll state can be given an offset.
egui: input in the pass of an AccessKit focus is lost
- Compensated: an AccessKit
Focusaction on a text field (from a screen reader, an agent, or a test) is only noted when egui reads the pass’s input (Focus::begin_pass); the focus is handed over when the field registers its interest in it, as it is allocated. ATextEditreads its events earlier, while its text is laid out, so the keys and text that arrive in the same pass as the action are dropped: the field gets the keyboard, not what was typed with it. Later passes are fine, which is why a kittest test (one queued event per step) does not see it; a platform batching the action with the keys does. - Upstream: fixed in egui 0.37.0:
Focus::begin_passfocuses the widget the action names at once, looked up among the focusable widgets of the previous pass (memory/mod.rs), before anything reads the input. No issue to file. - Workaround: the focus plugin (
egui_pop_core::focus::install, which anAppinstalls) holds back the keyboard input that follows an AccessKitFocusaction in the same pass and replays it, in order, at the start of the next pass, when the field has the focus (focus::hold_after_accesskit_focus,// upstream:). It covers every text field in the context, egui-pop’s and an application’s own. - Remove when: now, egui-pop being on egui 0.37 (check that text typed in the pass of an AccessKit focus reaches the field without the plugin); a follow-up of the move (issue #24).
egui: a plugin’s input hook runs in another window
- Compensated:
Context::begin_passcallsPlugin::input_hookbefore the pass begins: the viewport stack andMemory::viewport_idare only set after it. For an immediate viewport’s pass they are still the parent’s, and for a deferred viewport’s pass the context says the root and the memory says the last window that ran. SoMemory::focused()andsurrender_focusin a hook act on another window’s focus, and no public method reads a given window’s: onlyRawInput::viewport_idtells which window the input is for. In a real second window, Escape made the main window’s text field let go and lost the press, and a field of that window never got step 1 of the Escape order. - Upstream: not filed. egui’s main branch has the same order (2026-10-30).
- Workaround: the focus plugin notes at the end of each window’s pass what
has the focus, the hook reads that for
RawInput::viewport_id, and the focus is let go inon_begin_pass, where the memory is that window’s (focus::escape,// upstream:). A host running passes withContext::begin_passandend_passby hand has noon_end_pass, so no step 1 of the Escape order, and a terminal gets no keys. - Also compensated: the terminal’s key routing, which had the same cause.
In real windows, keys typed in a detached window went to a terminal focused
in the main window, past that window’s own text field, and a terminal in a
detached window got none of its keys. It reads the same note
(
focus::focused_in_window) and lets go on Shift+Escape inon_begin_pass(terminal::keys,// upstream:). - Remove when: egui runs the hook with the window’s memory, or offers a window’s focus by id.
egui: popups built from the context’s style, not the opening Ui’s
- Compensated: egui builds the
Uiof everyAreafrom the context’s style (Ui::newfalls back toctx.global_style();Areahas no style of its own), and every popup is anArea: a combo box’s list, a tooltip (on_hover_text,on_hover_ui), a context menu, a menu (menu_button,MenuBar), egui’sPopupandModal, windows. A style set on oneUi(a theme drawn in one part of a window, egui-pop’sScopedTheme) does not reach the popups opened inside it. The hooks that exist (Popup::style,ComboBox::popup_style,MenuConfig::style, all aStyleModifierapplied over the context’s style) only help at call sites one owns:Response::on_hover_textandResponse::context_menutake none, and a widget of another crate opening a popup cannot be reached. The same in egui 0.37.0 (ui.rs,containers/popup.rs); its experimental style providers see a popup’sUiStack, which does not lead back to theUithat opened it. - Upstream: https://github.com/emilk/egui/issues/4692 (tooltips
should inherit the parent’s style, open;
ComboBox::popup_style, https://github.com/emilk/egui/pull/7360, covers combo boxes at the call site only). A comment widening it to every popup, with a proposed API, is not posted yet (draft: upstream-drafts/egui-popups-inherit-ui-style.md). - Workaround: while a
ScopedThemedraws, egui’s context styles (dark and light) are the scoped theme’s, made from the installed style and kept per scope, and the installed ones are put back when the scope ends, even after a panic (ScopedTheme::within,// upstream:intheme.rs). egui 0.36 draws its popups while the widget that opens them is drawn, so they follow the scope. A popup egui-pop draws later, out of the scope (menus::popup_at, drawn by the shell), records the scope it was opened in and is drawn within it. Limits: egui’s light or dark mode (ctx.theme()) stays the installed one, and a change to the context’s style made while a scope draws is undone when it ends (themes are installed between frames). - Remove when: egui’s popups take the style of the
Uithey are opened from;ScopedTheme::withinthen only sets egui-pop’s tokens and kit (still needed for a popup drawn after its scope).
egui: scroll bar colours come from the widget visuals
- Compensated: egui’s
ScrollStylecarries a scroll bar’s sizes and opacities but no colour. egui 0.36 draws the thumb in the colours of the widget states (visuals.widgets.inactive,hovered,active): theirfg_strokecolour withforeground_color, else theirbg_fill, and theircorner_radius; these are the button’s colours and corners. It draws the track inextreme_bg_color, which text fields, canvases and progress bars also use. A theme cannot give the scroll bars colours of their own without changing every button and field. egui 0.37.0 is the same: itsScrollStylehas no colour either (style.rs,containers/scroll_area.rs). - Upstream: not filed yet (draft: upstream-drafts/egui-scroll-style-colours.md).
- Workaround: the kit’s
scroll-bargoes intoScrollStylewith the theme for what it can carry (width, margin, placement, visibility, no track), in every scroll area. Its colours come from aScrollBarscope:UiPop::scroll_areashows the area in aUiwhose widget states’ foreground colours and corners are the thumb’s, and whoseextreme_bg_coloris the track’s, and gives the content the style from outside the scope again (// upstream:inui.rs). Anegui::ScrollAreashown directly keeps the button’s colours, and the kit reports it in its problems. - Remove when: egui’s
ScrollStyle(or its visuals) has its own colours for the thumb in each state and for the track, and its own corner radius; the kit then writes them with the theme,Stock::ScrollBarand the problem go, andUiPop::scroll_areabecomes a plainScrollArea::show.
egui: AccessKit bounds ignore layer transforms
- Compensated: a widget in a transformed layer (egui’s
Scene) reports its rectangle to AccessKit in the layer’s coordinates, before the transform: screen readers (and kittest, which clicks at a node’s bounds) place it where it is not. - Upstream: not filed yet (draft: upstream-drafts/egui-accesskit-bounds-layer-transform.md).
- Workaround: the node graph editor sets the bounds of its nodes,
ports, chevrons, groups, stacks and sliders to their rectangles on
screen (
graph::Cx::bounds,// upstream:). - Remove when: egui applies the layer’s transform to the bounds it reports.
AccessKit: no expanded state on Linux
- Not compensated: AccessKit’s AT-SPI adapter (
accesskit_atspi_common0.21) maps no expanded or expandable state: a tree’s folder says whether it is open on Windows and macOS, never to Orca, and Right or Left on a folder is silent there. - Upstream: not filed yet.
- Workaround: none in egui-pop: the tree view sets the state
(
set_expanded) for the platforms that read it, and the screen reader pass’s walk marks those two steps silent (tools/wbox/screen_reader.py). - Remove when: the AT-SPI adapter maps the state; then the two steps say “expanded” and “collapsed”, recorded again.
egui: the focus cannot be given back as a modal closes
- Compensated: a widget drawn under the top modal layer gives up the
focus as it is drawn (
create_widget,allows_interaction), and that layer is the previous pass’s (top_modal_layer). Sorequest_focuson the widget behind a modal is undone in the pass the modal closes, and in the next when the modal was still drawn in that pass: on egui 0.36.2, the focus ends on nothing. - Upstream: not filed yet.
- Workaround: the overlay stack keeps the place and asks for the focus
once
allows_interactionsays the widget’s layer can hold it (// upstream:atgive_focus_back,crates/egui-pop-core/src/overlay.rs). - Remove when: egui takes a modal layer off in the pass it stops being drawn, or keeps a focus requested for a widget below it.
egui: a scroll target stops at the innermost scroll area
- Compensated:
Response::scroll_to_meandUi::scroll_to_rectset a target that the innermostScrollAreatakes whole, on both axes, even when it cannot move on that axis or does not overflow, so the areas around it never see it (Prepared::end). Reproduced on egui 0.36.2 with plain egui, a button in an area nested in a scrolled area:scroll_to_meleaves it out of view (egui_scroll_target_stops_at_the_innermost_area,crates/egui-pop-test/tests/focus_into_view.rs). And nothing says which areas hold a widget, or lets a central hook set a target for them:Action::ScrollIntoView, which a hook could inject, stops at the same place and always centres. - Upstream: not filed yet. The nearest is #985, from 2023, asking for a way to name the area: it saw every area scroll, the opposite of 0.36.2.
- Workaround: the focus plugin writes the offsets of the areas itself, from
the previous pass (
// upstream:incrates/egui-pop-core/src/reveal.rs): the ids inPassState::used_idsholding ascroll_area::Stateare the areas; the widgetsid.with(axis)are their bars, giving their reach; the widgets between the area’s contentUiand its bars are what it holds. These are egui’s internals read through public items: the test file above fails if a bump changes them. An area with hidden bars is not found. - Remove when: a scroll target bubbles to the outer areas as far as it needs to, or a widget’s enclosing areas can be read.
egui: a focus dropped leaves no place
- Compensated: when egui drops the focus (Escape, a widget no longer drawn) it
keeps no trace of it: Tab starts at the window’s first stop, Shift+Tab at its
last, and a widget removed has no successor. Reproduced on egui 0.36.2 with the
plugin off (
crates/egui-pop-test/tests/focus_place.rsfails). - Upstream: not filed yet.
- Workaround: the focus plugin remembers the place
(
// upstream:incrates/egui-pop-core/src/place.rs), holds back a Tab pressed with nothing focused for the pass, so that a key binding can take it, then gives the widget the focus back at the start of the next pass and tells egui to move on from it, and hands a removed widget’s focus on before egui’s own end of pass. - Remove when: egui’s focus has a notion of the last place, or a successor.
egui: a popup’s frame is a Tab stop
- Compensated:
PopupsensesSense::click()by default, so the frame of every popup (MenuButton,SubMenu,Popup::menu, a context menu, a combo box’s list) is a focusable widget with no role and no name, showing nothing: Tab goes from a menu’s button to its frame, then to its first item. Only aPopupbuilt by hand can set another sense;MenuButton,ComboBoxandResponse::context_menuhave nowhere to say it. Reproduced on egui 0.36.2 with the plugin off (crates/egui-pop-test/tests/focus_place.rsfails). - Upstream: fixed in egui 0.37.0, whose
PopupsensesSense::CLICK. - Workaround: when the focus lands on a popup’s frame, the focus plugin
moves it on in the next pass, the way Tab was going
(
// upstream:incrates/egui-pop-core/src/place.rs). - Remove when: now, egui-pop being on egui 0.37; a follow-up of the move (issue #24).
egui: a focused widget shows no focus of its own
- Compensated: egui’s widgets draw no focus ring: a focused button takes
the pressed button’s look (
Widgets::stylegivesactivefor a press and for the focus alike), and a focused label or custom widget shows nothing. Itsshow_focused_widgetis a debug outline, shown for any focus, a click’s included. - Upstream: not filed yet.
- Workaround: the focus plugin rings the focused widget at the end of the
pass while the focus is visible (the web’s
:focus-visible: on after a navigation key, off at a press of the pointer), unless the widget says it shows its own (crates/egui-pop-core/src/ring.rs,focus::own_ring); a widget drawing its own ring follows the same flag (focus::shows_ring). - Remove when: egui draws a focus indicator of its own, for the keyboard’s focus only.
egui: a panel’s resize line takes no key
- Compensated: since 0.37 a resizable
Panel’s line is a focusableSplitternamed “Resize panel”, answering AccessKit’s increment, decrement and set value, but no key: Tab reaches it and the arrows go on to the next widget. Its name does not say which panel, and its id is not given out. - Upstream: not filed yet.
- Workaround: the workbench gives its areas’ lines the keys (an arrow
across it, Shift, Enter) as an AccessKit set value, so that egui’s clamping
and storing apply, and names each after its area; it rebuilds the line’s id
the way egui does (
// upstream:incrates/egui-pop-api/src/workbench.rs,sash_id), which the keyboard walk’s tests check. - Remove when: egui’s resize line reads the arrows and Enter, and takes a name.
egui: Enter and Space click whatever the modifiers
- Compensated: a focused widget sensing clicks is clicked by any press of
Enter or Space (
Context::create_widget,key_pressed), with Ctrl, Alt or Shift held, and at every repeat of a key held down: Ctrl+Enter clicks a focused button, and a held Space clicks it many times. A native button clicks on a press alone, once. - Upstream: not filed yet.
- Workaround: the key dispatcher, once the keymap has taken what it binds,
takes such presses out of the input when the focused widget senses clicks
and not drags (
// upstream:incrates/egui-pop-core/src/keys.rs,quiet_plain_clicks). - Remove when: egui clicks on a plain, first press only.
egui: arrows move the focus anywhere
- Compensated: a plain arrow on a focused widget that does not lock it moves the focus to the best widget in a cone that way, across any container: from a side list’s last row to the line beside it, then into the page; from a menu’s button to a row behind the menu. Only a modal layer bounds it.
- Upstream: not filed yet.
- Workaround: the focus plugin undoes a move made by a plain arrow that
leaves the F6 region holding the focus (
// upstream:incrates/egui-pop-core/src/stay.rs). - Remove when: egui bounds its arrow moves to a container (a focus scope).
egui: no roving Tab stop
- Compensated: a widget is in Tab’s order if and only if it senses
FOCUSABLE, and that order is the order of drawing: nothing keeps a toolbar’s buttons out of it while they stay focusable by arrow or click, nor says where Tab lands in a container. A toolbar of twenty tools was twenty stops. - Upstream: not filed yet.
- Workaround:
tab::roving(// upstream:incrates/egui-pop-core/src/roving.rs): Tab from a widget of the group goes on from the group’s end, and Tab landing on another of its widgets than the one focused there last is moved to it before the next pass draws. - Remove when: egui has a focus scope with a single Tab stop (the web’s
roving
tabindex), or lets a widget leave Tab’s order and stay focusable.
egui: Tab wraps only in a modal layer
- Compensated: Tab goes by drawing order through the whole window and wraps
only inside
Memory::set_modal_layer, which also blocks the pointer below, so a popover closed by a click outside cannot use it. A focused widget’sEventFiltersays whether it takes Tab, but neither the filter nor the direction egui read from the key can be asked, so whether a press will move the focus is unknown before the pass. Read in egui 0.36.2 (Focus::begin_pass,interested_in_focus). - Upstream: no issue filed yet.
- Workaround:
focus::keep_tab. egui moves the focus by its own rule, so a widget taking Tab keeps it, and the focus plugin corrects where it landed: a hidden stop ends the popover’s order, for Tab from the last stop to land on, and the next pass moves the focus from there, or from a widget behind, to the popover’s first or last stop (// upstream:incrates/egui-pop-core/src/place.rs). - Remove when: egui can wrap Tab in a layer without blocking the pointer, or says where a press of Tab is going.
egui: no side-effect free read of a widget’s response
- Compensated:
Context::read_responseruns the “clicked elsewhere” rule (get_response): on a frame with a click that did not land on the widget, a focused widget loses the focus. Read every pass for the focused widget, to find its layer or place, it drops the focus a widget took when the click landed on one of its children (a tree focused through its clicked row). The pass’s widget lists, which hold the layer and rectangles, are not public. - Upstream: not filed yet.
- Workaround:
focus::peek_responsereads the response withsurrender_focus_onset toNeverfor the call (// upstream:infocus.rs); the focus chain, hover mode, F6 and the palettes’ Escape check use it. - Remove when: egui offers a read of a widget’s rectangle and layer (or a response) without interaction side effects.
egui: text blurs in a Scene zoomed past 100 %
- Compensated: egui draws text at its size and scales the layer, so
a
Scenezoomed in shows blurred glyphs. - Upstream: https://github.com/emilk/egui/issues/4813
- Workaround: the node graph editor stops at 150 % by default
(
GraphEditor::zoom_range), and its overview draws titles at a few larger sizes rather than scaling small ones. - Remove when: egui lays text out at the layer’s scale.
eframe: no custom cursor on the web or in immediate viewports
- Compensated:
Context::set_cursor_imagereaches winit only where egui-winit has the event loop (eframe’s root and deferred viewports); immediate viewports and the web drop the bitmap. - Upstream: web: https://github.com/emilk/egui/issues/3848 (custom
pointer icons, open; the web integration carries a TODO for CSS
url(...)cursors). Immediate viewports: a known limitation of https://github.com/emilk/egui/pull/8155, not filed yet (draft: upstream-drafts/egui-cursor-image-immediate-viewports.md). - Workaround: every bitmap cursor is shown with a system cursor as
its fallback (
cursor::apply,// upstream:): the tool cursor’s nearest system cursor, or a registered image’s own fallback. - Remove when: the bitmap reaches the system everywhere.
winit: no system cursor size
- Compensated: winit does not say how large the system’s cursors are, so tool cursors could not match them.
- Upstream: https://github.com/rust-windowing/winit/issues/3788 (open); a comment with this use case is not posted yet (draft: upstream-drafts/winit-cursor-size-comment.md).
- Workaround:
cursor::system_sizereadsXCURSOR_SIZE(X11 and Wayland desktops), else 24 points;CursorSettings::sizeoverrides it. - Remove when: winit reports the cursor size (Windows’
SM_CXCURSOR, the desktop’s cursor theme size).
winit: no release after a compositor move on Wayland
- Compensated: on Wayland, a window moved or resized by the
compositor (
ViewportCommand::StartDrag,BeginResize, winit’sdrag_windowanddrag_resize_window) does not get the release of the press that started it (seen in labwc, reported on GNOME’s mutter): egui then holds the primary button down, nothing hovers, and the next clicks (a window button, a section’s title) are taken as the rest of that press, until a new press and release or the pointer leaving the window.tools/wbox/titlebar.pyshows it in a headless labwc. - Upstream: not filed yet; to check against winit’s Wayland backend and mutter before filing.
- Workaround:
frame::compositor_grab, called by the title bar and the resize edges after they hand the window to the compositor: the window’s next pass starts with the primary button released, when egui still holds it and no release came. A real release coming later finds the button up. - Remove when: winit delivers the release (or a pointer leave and enter) after a compositor move or resize on Wayland.
winit and egui: no owner window for a viewport
- Not built: a palette or toolbox as a native utility window (U3 in hosts.md). Without an owner, such a window floats above every application instead of only above its own, and is listed in the taskbar and the window switcher.
- Upstream: winit has an owner only on Windows
(
WindowAttributesExtWindows::with_owner_window). The cross-platform request is https://github.com/rust-windowing/winit/issues/4256 (open; it names X11’sXSetTransientForHint, macOS child windows and, in a comment, Wayland’sxdg_toplevel.set_parent). A comment with this use case is not posted yet (draft: upstream-drafts/winit-owner-window-comment.md). egui’sViewportBuilderhas no owner either; an issue is drafted for when winit has one (upstream-drafts/egui-viewport-owner-issue.md). - Workaround: palettes stay inside the main window; a detached panel is an ordinary top-level window, not a utility window.
- Remove when: winit gives an owner on every desktop platform and
egui’s
ViewportBuilderpasses it through.
eframe: no window handle for a viewport other than the main window
- Compensated: the system’s file chooser asked from an application
window cannot be attached to it: eframe gives the native window
(
CreationContext::winit_window,Frame::winit_window) of the main window only, never of a deferred or immediate viewport. Such a chooser is attached to no window, rather than to the main window, where it would block the wrong window. - Upstream: not filed yet; the same need as a viewport’s owner above (a viewport’s native window, or its raw handles, from eframe).
- Workaround:
files::set_parent_windowtakes a window’s handles from an application that has them;AppBuilder::run_nativerecords the main window’s, and with thecreate-nativefeature (default) every other window’s too: egui-pop owns the event loop and reads a window’s handles from its winit id (egui-pop-winit, an implementation detail of winit 0.30 checked by a test per system and, at run time, against the main window’s handles), immediate viewports’ included. A host running its own loop callsrunner::host’s hooks (featurehost-loop) for the same. See eframe-comparison.md. - Remove when: eframe gives each viewport’s window or raw handles; egui-pop then records them as each window opens.
egui_table: unnamed resize handles, rows drawn per region
- Compensated: the column resize handles are interactive widgets
without an accessible name;
TableDelegate::row_uiandheader_cell_uiare called once per region (sticky and scrolled columns), also for the sticky region when there are no sticky columns;TableDelegate::preparegets a reversedvisible_rowswhen the table is clipped away, scrolled out of a scroll area around it. - Upstream: egui_table lives in rerun-io/egui_crates now. Not filed
yet (drafts:
upstream-drafts/egui_crates-table-resize-handle-name.md
and
upstream-drafts/egui_crates-table-row-ui-empty-sticky-region.md).
On egui_table’s main the header is drawn once, so only
row_uiis still called for the empty region. - Workaround:
egui-pop-views’ data table names each handle after its column once the table is drawn, and skips the rows and header cells of an empty region (table.rs,// upstream:). - Remove when: egui_table names its handles and skips empty regions.
egui_commonmark: a code block is an unnamed text field
- Compensated:
egui_commonmark_backend::elements::code_blockdraws a code block as a read-onlyegui::TextEdit::multilinewith no hint and no label, so AccessKit reports aMultilineTextInputwithout a name; it returns nothing, and the field’s id comes fromui.next_auto_id(), so a caller cannot name it. Seen on 0.25.0 (egui 0.36, the version in use); 0.26.0 (egui 0.37, the current release) and themasterbranch still draw it the same way. The block’s copy button is named by its glyph (🗐, then✔). - Reproduction:
CommonMarkViewer::new().show(ui, &mut cache, "```text\na\n```")in anegui_kittestharness: the tree holds a node of roleMultilineTextInputwith no label. - Upstream: not filed yet.
- Workaround:
egui-pop-views’ viewer names the unnamed multi-line fields among the widgets a page just drew, on their AccessKit nodes (viewer/view.rs,// upstream:). The copy button keeps its glyph. - Remove when: egui_commonmark names its code blocks, or takes a name for them.
egui_commonmark: a code block’s copy button is a symbol
- Compensated: egui_commonmark 0.26 draws a code block’s copy button
as the text
🗐(and✔once copied). egui 0.37’s bundled fonts have no🗐: the viewer shows a box there, and egui_kittest 0.37, which panics on a missing glyph by default, fails a test drawing a code block. - Upstream: not filed yet (draw the button as an icon, or let the application hide it).
- Workaround: the tests drawing the viewer’s code blocks allow
missing glyphs (
HarnessBuilder::allow_missing_glyphs,// upstream:). The button still shows a box. - Remove when: egui_commonmark draws its copy button without a symbol the fonts may lack.
egui_kittest: no way to move a window to a screen of another scale
- Compensated:
Harness::set_pixels_per_pointchanges egui’s zoom factor, not the window’s native scale, so a test cannot simulate a window moved to a screen of another scale (winit’s scale change). - Upstream: not filed yet (draft:
upstream-drafts/egui-kittest-native-pixels-per-point.md,
proposing
Harness::set_native_pixels_per_point). - Workaround:
egui_pop_test::set_native_scalewrites the root viewport’snative_pixels_per_pointin the harness’s input before the next step, as egui-winit does on a scale change. - Remove when: kittest has such a setter.
egui: keyboard zoom on by default
- Compensated:
Options::zoom_with_keyboardis on by default: Ctrl and+,-,0change the zoom factor of every window, the keys an application’s content zoom (an image viewer’s) uses too. - Upstream: a default, not a defect; nothing to file.
- Workaround: egui-pop’s application turns it off and owns the
interface zoom (
egui_pop_api::zoom): a setting in fixed steps, and commands bound by default toCtrl+Alt+=,Ctrl+Alt+-andCtrl+Alt+0, rebindable like any command. - Remove when: never; this is egui-pop’s design.
egui: symbols missing from the default fonts
- Compensated: symbols such as ✓ ▸ ◆ ● render as missing glyphs with egui’s default fonts.
- Upstream: https://github.com/emilk/egui/pull/8491 (“Render any
glyph on native”, in egui 0.37.0) draws a glyph the fonts lack from the
system’s fonts, through an opt-in font provider (eframe’s
system_fontsfeature, off in egui-pop). egui’s bundled fonts still lack these symbols, and neither the web nor kittest has a provider. - Workaround: icons are named by role (
egui_pop_core::icon::Icon) and drawn from the Phosphor icon font (phosphorfeature), installed in a family of its own, or painted with lines and fills; widgets never put symbols in text. egui’sSubMenuButtonarrow (⏵) is replaced by a painted chevron in egui-pop’s menus. - Remove when: every backend egui-pop runs on (native, web, kittest) draws these symbols; until then icons stay named by role.
eframe: no list of screens when a window is placed
- Compensated: a window’s place is restored before the window exists, when eframe gives no list of the screens (only the current monitor’s size afterwards, with no origin), so a place on a screen that is gone cannot be told from one on a second screen.
- Upstream: related to https://github.com/emilk/egui/issues/4073
(choose the monitor at launch); a request for the screens’ rectangles
in
ViewportInfois not filed yet. - Workaround:
egui_pop_api::window::WindowState::repairtakes the screens when they are known (tested with sample layouts). With thecreate-nativefeature (default), egui-pop owns the event loop, reads the monitors before eframe creates the main window, and repairs its place against them in thewindow_builderhook; without it, only the size is bounded and a position far away is dropped. Sizes are kept under 8192 points per side, past which the surface cannot be configured (https://github.com/emilk/egui/issues/8361). - Remove when: eframe tells the screens before the window is placed.
winit: no hit-test hook for a custom title bar on Windows
- Compensated: Windows 11 shows its Snap Layouts flyout only when the
maximize button’s area answers
HTMAXBUTTONtoWM_NCHITTEST; winit has no hook to answer it, so a title bar drawn by the application loses Snap Layouts. - Upstream: https://github.com/rust-windowing/winit/issues/3884
(open since 2024), https://github.com/rust-windowing/winit/issues/2413
(a
HitTestevent) and its pull request https://github.com/rust-windowing/winit/pull/3207, not updated since 2024. Maintainers point to subclassing the window outside winit; a 2026 comment on the issue notes that subclassing does not help when a child window covers the client area. - Workaround: egui-pop’s frame (
egui_pop_core::frame) publishes each window’s hit regions every frame, in physical client pixels (HitTable,HitRegions::hitmapping a point to caption, minimize, maximize, close or a resize edge). On Windows,FramePlugin(when the application draws the frame) subclasses the main window throughegui-pop-win32(SetWindowSubclass,unsafein one module, with no egui dependency) and answersWM_NCHITTESTfrom them:HTCAPTION(Windows moves the window, with Aero Snap),HTMINBUTTON,HTMAXBUTTON(Snap Layouts) andHTCLOSE, the resize codes, elseHTCLIENT. The buttons’ non-client clicks never reach winit, so the layer swallows them and hands them back with hover, as are a double click and a right click on the caption: theframe.*steps still run. The layer is installed and removed through theframe.hit_teststep. Limits: only the main window (its handle comes from eframe’s creation context; auxiliary windows keep egui’s own hit handling), and a child window covering the client area would take the hit tests first (the 2026 comment above). - Remove when: winit can answer a hit test for a point of the window.
egui-wgpu: no surface format or colour space to choose
- Compensated: wgpu 30 configures surfaces in any colour space the
platform offers (
SurfaceConfiguration::color_space: extended sRGB, scRGB, Display P3, BT.2100 PQ and HLG) and reports them per format (SurfaceCapabilities::color_spaces) with the display’s headroom (Surface::display_hdr_info). eframe 0.36 does not let an application use any of it: egui-wgpu picks the format itself (preferred_framebuffer_format:Rgba8UnormorBgra8Unorm), and configures the surface with wgpu’s default colour space (configure_surfacebuilds onget_default_config);WgpuConfigurationhas no field for either. Its renderer also writes sRGB-encoded values to every format that is not*Srgb(fs_main_gamma_framebuffer), so the interface is right only on sRGB and extended sRGB surfaces. - Upstream: not filed yet. What would plug in: a preferred format
and colour space in
egui_wgpu::WgpuConfiguration(used byRenderState::createandconfigure_surface), and the renderer’s fragment entry chosen by the colour space’s transfer (linear for scRGB, an encoding pass for PQ and HLG) rather than byis_srgb(). - Workaround: none possible inside eframe for the window’s own
surface. The viewport’s display stage implements every transfer and
the P3 and BT.2020 primaries (CPU and shader); it reports truthfully
what an eframe window draws (sRGB, with the reason,
display::Resolution); a host with its own surface configures it withegui_pop_viewport::gpu::choose_surfaceand declares it (gpu::install_for_surface,display::set_target); on Wayland the image gets a surface of its own (next entry). The issue text is drafted below, under the Wayland entry. - Remove when: egui-wgpu takes a surface format and colour space;
then
gpu::installreads them from the render state.
egui-winit: copy, cut and paste arrive as events, their keys swallowed
- Compensated: egui-winit turns the platform’s copy, cut and paste
chords (Command or Ctrl with C, X, V; Ctrl+Insert, Shift+Insert,
Shift+Delete on Windows) into
Event::Copy,Event::CutandEvent::Paste(text)and sends no key event: a command bound to them in the keymap never runs. A paste is read synchronously, as text only, and nothing reads the primary selection. When the system clipboard holds no text (a file manager’s copy of files, a browser’s “Copy image”), the paste chord makes no event at all: its press is dropped, only its release reaches egui as a key event. - Upstream: egui 0.37 answers most of it:
NativeOptions::clipboard_shortcuts(egui-winit’sState::set_clipboard_shortcuts), when off, sends the chords as plain key events, andEvent::PasteImage(emilk/egui#8472) carries an image when the clipboard holds no text. A clipboard holding only files still makes no event with the shortcuts on (emilk/egui#1167 asks for file paste events). - Workaround: while a clipboard endpoint has the focus (and no text
field does), the clipboard plugin takes the three events and runs
edit.copy,edit.cut,edit.paste(Shift held: paste special) with the pasted text (clipboard::pass,// upstream:); the keymap binds the same keys for every other backend (kittest, the web). The paste chord with no text is recognised by its release: a release of the paste key whose press egui never saw, with no paste event since and the command modifier held meanwhile, runsedit.pastewithno_text, and the system backend reads what the clipboard holds (files, an image, HTML); with the default backend, which reads nothing, that paste is refused when the owner’s text is no longer there. It fires on the release, not the press, and a key repeat pastes once. - Partly removed: with a backend that reads the system clipboard
(
SystemClipboardPlugin),run_nativeturnsclipboard_shortcutsoff; the keymap runs the chords and gives text fields their copy, cut and paste events, the text read through the backend (clipboard::set_keymap_shortcuts), so the key is seen on its press whatever the clipboard holds. - Remove when: the default backend reads the system clipboard too (then the shortcuts go off everywhere natively); on the web, the browser’s clipboard events stay the only way to read it.
Wayland: no colour management through winit
- Compensated: on Wayland, colour management is the
wp_color_management_v1protocol (staging, in wayland-protocols since 1.41): a surface gets an image description (primaries, transfer, luminances), and the compositor gives each surface’s preferred one. winit 0.30 binds none of it (no colour-management object, no event for the preferred description), eframe configures every window 8-bit sRGB (above), and wgpu’s Vulkan path relies on the driver: Mesa’s Wayland window system integration (25.1 and later) maps someVkColorSpaceKHRto the protocol, none of them BT.2020 with a 2.2 power, and holds the colour-management object of every swapchain’s surface when the compositor announces thesrgbtransfer to it (research: wayland-colour.md). - Upstream: winit’s https://github.com/rust-windowing/winit/issues/4131 (colour management getters and events, open); the wgpu, egui-wgpu and Mesa requests below are not filed yet.
- Workaround: the image gets a surface of its own
(
egui_pop_viewport::image_surface,// upstream:inimage_surface.rs):egui-pop-waylandjoins winit’s connection from the window’s raw handles, makes a subsurface below the window, tags it through the protocol (or lets the driver declare a colour space where it holds the surface), and reads the preferred description throughget_surface_feedback; the viewport renders into it with wgpu and punches a hole in the interface. It needs a transparent window, and serves each window whose handles are known, its own surface per window (egui-wgpu keeps one format for every window’s interface). - Remove when: egui-wgpu takes a surface colour space and wgpu offers one for the wanted encoding (or a pass-through one an application can tag), and winit exposes the preferred description; then the window’s own surface carries the image, and the interface is encoded for it.
Drafted requests (not filed)
egui-wgpu / eframe: a present mode per window.
Title: Let each viewport’s surface have its own present mode
WgpuConfiguration::surfaceandFrame::set_wgpu_surface_configset oneSurfaceConfigfor every surface (egui-wgpu/src/winit.rsreconfigures them all). An application with several windows on Wayland must pickAutoNoVsyncfor all of them: a FIFO present on a window the compositor does not show (minimised, on another workspace) waits for a frame callback that never comes, and with one UI thread every other window waits behind it. With a mode per surface, the windows shown could keep a FIFO present and only the hidden ones (or the secondary ones) skip it.Proposal: an optional
present_modeonViewportBuilder(or aFrame::set_viewport_surface_config(ViewportId, SurfaceConfig)), applied by egui-wgpu’s painter to that viewport’s surface only, falling back to the global configuration.
PR idea: a per-viewport override map in egui_wgpu::winit::Painter,
read in configure_surface, and the field on ViewportBuilder, passed
through egui-winit’s viewport creation like the other window options.
wgpu: a pass-through surface colour space, and BT.2020 linear.
Title:
SurfaceColorSpace::PassThroughandBt2020Linearon Vulkanwgpu 30 configures a surface’s colour space (
SurfaceConfiguration::color_space, #9658), mappingSRGB_NONLINEAR,EXTENDED_SRGB_LINEAR,EXTENDED_SRGB_NONLINEAR,DISPLAY_P3_NONLINEAR,HDR10_ST2084andHDR10_HLG(wgpu-hal/src/vulkan/conv.rs); the others a driver reports are dropped (unknown_color_spaces_are_dropped). Two of them matter on Wayland:
VK_COLOR_SPACE_PASS_THROUGH_EXT: Mesa’s Wayland WSI then leaves the surface’swp_color_management_surface_v1alone. With any other colour space, Mesa creates that object (one is allowed perwl_surface) on compositors announcing thesrgbtransfer, even for plain sRGB, so an application that describes its surface itself through the protocol (an ICC profile, BT.2020 with a 2.2 power, custom primaries) cannot use a wgpu swapchain there: tagging it is a fatalsurface_existserror.VK_COLOR_SPACE_BT2020_LINEAR_EXT: Mesa maps it tobt2020+ext_linearwherever the compositor announces both (GNOME and sway included, which offer no scRGB), a wide SDR encoding.Proposal:
SurfaceColorSpace::PassThrough(documented as “the presentation engine applies no colour management; the application describes the surface by other means”) andBt2020Linear, with theirSurfaceColorSpacesflags, mapped on Vulkan only and reported fromvkGetPhysicalDeviceSurfaceFormatsKHRas the others are.
PR idea: two variants in wgpu-types/src/surface.rs and their flags,
the two arms in wgpu-hal/src/vulkan/conv.rs both ways, a line in the
03_hdr_surface example’s list.
egui-wgpu / eframe: a surface colour space (see also the entry above).
Title: Let
WgpuConfigurationchoose the surface format and colour spaceegui-wgpu picks the surface format (
preferred_framebuffer_format) and configures wgpu’s default colour space (configure_surfacebuilds onget_default_config); an application cannot ask for a wide-gamut or HDR surface, which wgpu 30 supports (SurfaceConfiguration::color_space,SurfaceCapabilities::format_capabilities). The renderer also picks its output encoding fromformat.is_srgb()(fs_main_linear_framebufferorfs_main_gamma_framebuffer), so on a linear half-float surface (scRGB) the interface would be written gamma-encoded.Proposal:
WgpuConfiguration::surface_formatandsurface_color_spaceas callbacks over the surface’s capabilities (Fn(&SurfaceCapabilities) -> Option<(TextureFormat, SurfaceColorSpace)>, default: today’s choice), used byRenderState::createandconfigure_surface; the chosen colour space exposed inRenderState; the renderer’s output transfer chosen from it (linear for scRGB and the linear spaces, sRGB-encoded otherwise), with a hook for a matrix and transfer (Display P3, PQ) later.
PR idea: the two fields and their default in egui-wgpu/src/lib.rs,
their use in winit.rs (configure_surface) and RenderState::create,
and a Renderer option for the output transfer replacing the
is_srgb() test; eframe passes them through NativeOptions::wgpu_options.
winit: the preferred image description (a comment on rust-windowing/winit#4131 rather than a new issue).
On Wayland,
wp_color_manager_v1.get_surface_feedbackgives a window’s preferred image description (primaries, transfer, luminances, the display’s target volume) andpreferred_changedits changes, which is what an application needs to choose an encoding and an HDR headroom per window. AWindow::preferred_color_description()(a plain struct of those values) and aWindowEvent::ColorDescriptionChangedwould cover it; binding the manager in winit’s Wayland backend and one feedback object per window is enough. Today an application binds it on winit’s connection through the raw handles (as egui-pop does).
Mesa (Wayland WSI): leave sRGB surfaces untouched (for the record; Mesa’s call).
needs_color_surface()creates awp_color_management_surface_v1forVK_COLOR_SPACE_SRGB_NONLINEAR_KHRwhen the compositor announces thesrgbprimaries and transfer, butwsi_wl_swapchain_update_colorspacenever sets a description for it. The object only takes the surface’s single slot, so a client describing the surface itself (a subsurface with an ICC profile, for one) cannot. Creating it lazily, when a description is set, would leave sRGB swapchains untouched. Separately,SRGB_NONLINEARandDISPLAY_P3_NONLINEARmap to thesrgbtransfer, deprecated in version 2 and not announced by KWin, wlroots or Weston, so Display P3 is offered only on GNOME and Hyprland;gamma22(orcompound_power_2_4on version 2) would offer it everywhere.