forked from quickshell/quickshell
all: fix new lints
This commit is contained in:
parent
26d443aa50
commit
2c411fce5a
43 changed files with 351 additions and 316 deletions
|
@ -12,6 +12,8 @@
|
|||
|
||||
using namespace qs::menu::platform;
|
||||
|
||||
namespace {
|
||||
|
||||
// fixes positioning of submenus when hitting screen edges
|
||||
void platformMenuHook(PlatformMenuQMenu* menu) {
|
||||
auto* window = menu->windowHandle();
|
||||
|
@ -62,4 +64,6 @@ void platformMenuHook(PlatformMenuQMenu* menu) {
|
|||
window->setProperty("_q_waylandPopupConstraintAdjustment", constraintAdjustment);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void installPlatformMenuHook() { PlatformMenuEntry::registerCreationHook(&platformMenuHook); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue