Skip to content

Commit

Permalink
input: partially revert #4401
Browse files Browse the repository at this point in the history
ref #4465
  • Loading branch information
vaxerski committed Jan 17, 2024
1 parent 8342bac commit 307dd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/input/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {

bool allowKeyboardRefocus = true;

if (g_pCompositor->m_pLastFocus) {
if (!refocus && g_pCompositor->m_pLastFocus) {
const auto PLS = g_pCompositor->getLayerSurfaceFromSurface(g_pCompositor->m_pLastFocus);

if (PLS && PLS->layerSurface->current.keyboard_interactive == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE)
Expand Down

2 comments on commit 307dd8f

@earboxer
Copy link
Contributor

@earboxer earboxer commented on 307dd8f Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit breaks exclusive keyboard focus by not setting allowKeyboardRefocus = false;. (so if you click on another window, [refocus is true and] you lose exclusive keyboard focus).

@vaxerski
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix all the annoyances soon hopefully

Please sign in to comment.