1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

- Fixed bug with windows that have WM_HINTS.take_focus = False. These windows

will not receive focus at all.
This commit is contained in:
kojima
2002-03-24 03:18:09 +00:00
parent 18d347ecd5
commit 92fb96eb69
2 changed files with 10 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ Changes since version 0.80.0:
- Fixed a bug about arranging subviews in a WMBox after removing a subview
and a memleak occuring in the same situation.
- Fixed a bug in wdread
- Fixed bug with windows that have WM_HINTS.take_focus = False. These windows
will not receive focus at all.
Changes since version 0.70.0:

View File

@@ -494,6 +494,14 @@ wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
//WSETUFLAG(wwin, sunken, 0);
WSETUFLAG(wwin, no_shadeable, WFLAGP(wwin, no_titlebar));
/* windows that have takefocus=False shouldn't take focus at all */
if (wwin->focus_mode == WFM_NO_INPUT) {
/* dont use WSETUFLAG, since this was not an attribute change
* made by the user */
wwin->user_flags.no_focusable = 1;
}
}