Skip to content

No way to avoid focus stealing on X11. #1160

@Toqozz

Description

@Toqozz

There seems to be no way to map a window without focusing it. I've only tested this on X11, but it may be present on other platforms as well given there is no WindowBuilder option to disable the behaviour.

On X11, this code is the culprit:

// Set visibility (map window)
if window_attrs.visible {
unsafe {
(xconn.xlib.XMapRaised)(xconn.display, window.xwindow);
} //.queue();
}

XMapRaised pushes the window to the top of the stack as well as maps the window.

There should be an option to disable this behaviour and map the window normally with XMapWindow().

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedC - needs investigationIssue must be confirmed and researchedDS - x11Affects the X11 backend, or generally free Unix platforms

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions