1
0
Fork 0
mirror of https://github.com/hyprwm/Hyprland synced 2025-01-07 23:09:49 +01:00

shadow keybinds on drag events

This commit is contained in:
vaxerski 2022-07-21 19:44:34 +02:00
parent a011c28227
commit 19cd04c85f
2 changed files with 4 additions and 2 deletions

View file

@ -117,6 +117,9 @@ void IHyprLayout::onBeginDragWindow() {
m_vLastDragXY = m_vBeginDragXY;
g_pHyprRenderer->damageWindow(DRAGGINGWINDOW);
// shadow to ignore any bound to MAIN_MOD
g_pKeybindManager->shadowKeybinds();
}
void IHyprLayout::onEndDragWindow() {

View file

@ -31,6 +31,7 @@ public:
void removeKeybind(uint32_t, const std::string&);
uint32_t stringToModMask(std::string);
void clearKeybinds();
void shadowKeybinds();
std::unordered_map<std::string, std::function<void(std::string)>> m_mDispatchers;
@ -45,8 +46,6 @@ private:
bool handleKeybinds(const uint32_t&, const std::string&, const xkb_keysym_t&, const int&, bool, uint32_t);
void shadowKeybinds();
bool handleInternalKeybinds(xkb_keysym_t);
bool handleVT(xkb_keysym_t);