+
Skip to content

MapRequest: don't fake map/unmap events #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions fvwm/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -3221,8 +3221,23 @@ void HandleMapRequestKeepRaised(
* remember exactly why this is necessary, but
* probably something w/ (de)iconify state
* confusion. */
fake_map_unmap_notify(fw, MapNotify);
fake_map_unmap_notify(fw, UnmapNotify);
if (Restarting &&
win_opts->initial_state == IconicState ) {
/* TA: 2022-09-21 -- putting this
* inside a restart check and *only*
* doing this for iconified windows
* stops non-iconified windows on
* recapture from being iconified.
*/
fvwm_debug(__func__,
"Window 0x%x is new "
"and is being recaptured and in an "
"iconic state. Sending fake map/unmap",
(int)FW_W(fw));
fake_map_unmap_notify(fw, MapNotify);
fake_map_unmap_notify(fw, UnmapNotify);
}

}
if (win_opts->flags.is_iconified_by_parent ||
((tmp = get_transientfor_fvwmwindow(fw)) &&
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载