Grow the notch launcher down once you search
The empty launcher stays in the widened notch, now laid out exactly like the launcher window's bar. Typing (or the magnifying glass / Down) hands over to the launcher window, which opens at the notch's size with the text already in it and only grows down with the results; clearing the search shrinks it back into the notch. The query and browse state are shared through ShellState, keys typed during the hand-over carry across, and the bar keeps its keyboard claim so focus returns on its own. The launcher window's open state is read from plain properties so it never maps for a frame on a stale value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f029922ec
commit
415b1b3cd6
5 files changed
+151
-202
No files matched your search
@@ -37,7 +37,11 @@ PanelWindow {
|
||||
// The notch's search takes the keyboard while it is open on this screen;
|
||||
// a click anywhere else closes it.
|
||||
readonly property bool searching: notch && ShellState.notchSearch && ScreenService.current(ShellState.launcherScreen) === screen
|
||||
WlrLayershell.keyboardFocus: searching ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
||||
// Holds the keyboard for as long as the launcher is open here. The launcher
|
||||
// window's own claim (overlay layer) wins while it is up; when it hands
|
||||
// back, the keyboard returns here without asking again.
|
||||
readonly property bool typing: notch && ShellState.notchLauncher && ScreenService.current(ShellState.launcherScreen) === screen
|
||||
WlrLayershell.keyboardFocus: typing ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
||||
// The grab starts once the bar holds the keyboard; started together with
|
||||
// the focus change, Hyprland clears it at once and the search closes.
|
||||
property bool grabbing: false
|
||||
|
||||
Reference in new issue
Block a user