Skip to content
Myr

Revert "main: don't render immediately in application mode"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit 70ee26bb103a00ccb638b69bf0ac607ca2bbff7b. > Assumption: software rendering is slow, and loading the .desktop files > is fast. I.e. we don't want to waste resources rendering an empty > window - it's better to finish loading the applications and _then_ > render. That may be, but it's even more important to be able to type directly, and without a window having input focus, you can't. Closes #751

authored by Daniel Eklöf · committed by Daniel Eklöf · parent dfcc118 · Browse files · 1 file+4 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−17 removed

  • other:+4 added−17 removed

1 file+4 added−17 removed

modified:main.c+4 added-17 removed
2369 unmodified lines
2370 }23712372 join_app_thread = true;23732374 /*2375 * Render immediately, even if empty2376 *2377 * We do this in dmenu mode only; we assume there's at least one2378 * .desktop file in application mode, and we don't want to waste2379 * resources on rendering an empty window while loading the2380 * applications.2381 *2382 * Even if we're in dmenu mode, we don't always render immediately2383 * - exit-immediately-if-empty: we don't want to display anything2384 * if the final list is empty2385 * - minimal-lines: we need to know how many items we're going to2386 * display2387 */2388 if (conf.dmenu.enabled) {2389 if (!conf.dmenu.exit_immediately_if_empty && !conf.minimal_lines)2390 wayl_ready_to_display(wayl);2374 if (!conf.dmenu.exit_immediately_if_empty &&2375 !(conf.dmenu.enabled && conf.minimal_lines))2376 {2377 wayl_ready_to_display(wayl);2378 }23792380 wayl_refresh(wayl);2381
69 unmodified lines