From 3445ffb979a2e7e946059f0ebb7cc79958af8f88 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:53:58 +0700 Subject: [PATCH] make text in sdebar entry selectable w/ mouse --- .config/ags/widgets/onscreenkeyboard/onscreenkeyboard.js | 2 +- .config/ags/widgets/overview/windowcontent.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/ags/widgets/onscreenkeyboard/onscreenkeyboard.js b/.config/ags/widgets/onscreenkeyboard/onscreenkeyboard.js index 5a2cf3845..d641436d1 100644 --- a/.config/ags/widgets/onscreenkeyboard/onscreenkeyboard.js +++ b/.config/ags/widgets/onscreenkeyboard/onscreenkeyboard.js @@ -4,7 +4,7 @@ import Widget from 'resource:///com/github/Aylur/ags/widget.js'; import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'; const { Box, EventBox, Button, Revealer } = Widget; -const { execAsync, exec } = Utils; +const { execAsync } = Utils; import { MaterialIcon } from '../../lib/materialicon.js'; import { separatorLine } from '../../lib/separator.js'; import { defaultOskLayout, oskLayouts } from '../../data/keyboardlayouts.js'; diff --git a/.config/ags/widgets/overview/windowcontent.js b/.config/ags/widgets/overview/windowcontent.js index 68b9d34a4..91eadd18c 100644 --- a/.config/ags/widgets/overview/windowcontent.js +++ b/.config/ags/widgets/overview/windowcontent.js @@ -10,6 +10,7 @@ import { CalculationResultButton, CustomCommandButton, DirectoryButton, DesktopEntryButton, ExecuteCommandButton, SearchButton } from './searchbuttons.js'; +import { enableClickthrough } from '../../lib/roundedcorner.js'; // Add math funcs const { abs, sin, cos, tan, cot, asin, acos, atan, acot } = Math; @@ -76,7 +77,7 @@ export const SearchAndWindows = () => { child: Widget.Label({ className: 'overview-search-prompt txt-small txt', label: 'Type to search' - }) + }), }); const entryIconRevealer = Widget.Revealer({ @@ -217,7 +218,10 @@ export const SearchAndWindows = () => { entry, Widget.Box({ className: 'overview-search-icon-box', - setup: box => box.pack_start(entryPromptRevealer, true, true, 0), + setup: (box) => { + box.pack_start(entryPromptRevealer, true, true, 0) + // enableClickthrough(box); + }, }), entryIcon, ]