mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-31 03:43:49 -07:00
get window under cursor in kill
This commit is contained in:
@@ -413,7 +413,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) {
|
|||||||
void CInputManager::processMouseDownKill(wlr_pointer_button_event* e) {
|
void CInputManager::processMouseDownKill(wlr_pointer_button_event* e) {
|
||||||
switch (e->state) {
|
switch (e->state) {
|
||||||
case WLR_BUTTON_PRESSED: {
|
case WLR_BUTTON_PRESSED: {
|
||||||
const auto PWINDOW = g_pCompositor->m_pLastWindow;
|
const auto PWINDOW = g_pCompositor->vectorToWindowIdeal(getMouseCoordsInternal());
|
||||||
|
|
||||||
if (!PWINDOW) {
|
if (!PWINDOW) {
|
||||||
Debug::log(ERR, "Cannot kill invalid window!");
|
Debug::log(ERR, "Cannot kill invalid window!");
|
||||||
|
Reference in New Issue
Block a user