mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 11:05:58 +01:00
get window under cursor in kill
This commit is contained in:
parent
a55db95a3b
commit
3e2200ed90
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) {
|
|||
void CInputManager::processMouseDownKill(wlr_pointer_button_event* e) {
|
||||
switch (e->state) {
|
||||
case WLR_BUTTON_PRESSED: {
|
||||
const auto PWINDOW = g_pCompositor->m_pLastWindow;
|
||||
const auto PWINDOW = g_pCompositor->vectorToWindowIdeal(getMouseCoordsInternal());
|
||||
|
||||
if (!PWINDOW) {
|
||||
Debug::log(ERR, "Cannot kill invalid window!");
|
||||
|
|
Loading…
Reference in a new issue