Skip to content

Commit 1b2fad6

Browse files
Seeker04Seeker04
authored andcommitted
Ignore modkey+click on unmapped windows to avoid rare crash, e.g. with LibreOffice slide show (#117)
1 parent f1be811 commit 1b2fad6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plwm.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,7 @@
14221422

14231423
% left or right mouse clicked
14241424
;(Button = Button1 ; Button = Button3) ->
1425-
nb_getval(bars, Bars),
1426-
(Subwin =\= 0, \+ member(Subwin, Bars) ->
1425+
(Subwin =\= 0, win_mon_ws(Subwin, _, _) ->
14271426
focus(Subwin),
14281427
raise(Subwin),
14291428
(plx:x_get_window_attributes(Dp, Subwin, [X, Y, W, H], Status), Status =\= 0,

0 commit comments

Comments
 (0)