Skip to content

Commit f84bb90

Browse files
committed
Fixed window losing focus when switching to fullscreen from window menu
1 parent c03a6bc commit f84bb90

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

LFSWM2/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
1.0.2
2+
Fixed window losing focus when switching to fullscreen from window menu.
23
Fixed new windows occasionally not getting focus.
34
Removed alarm timer, now use 'kill -SIGUSR1 $(pgrep "^lfswm2$")' to signal a change.
45
Code clean.

LFSWM2/LFSWM2/src/clientClass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ bool LFSWM2_clientClass::wmCB(void *p,void* ud)
547547
{
548548
cc->LFSWM2_fullscreenWindow(true,true);
549549
cc->mainClass->mainWindowClass->LFSWM2_addState(cc->contentWindow,cc->mainClass->atomshashed.at(LFSTK_UtilityClass::LFSTK_hashFromKey("_NET_WM_STATE_FULLSCREEN")));
550+
XSetInputFocus(cc->mainClass->display,cc->contentWindow,RevertToNone,CurrentTime);
550551
}
551552

552553
if(LFSTK_UtilityClass::LFSTK_strStr(comp,cc->menuNames.at(ONTOPLABEL)).empty()==false)

0 commit comments

Comments
 (0)