Skip to content

fix: adds "Open Directory" to the xdg-desktop-portal-gtk floating-window tag windowrule#5023

Open
FredrikMWold wants to merge 1 commit intobasecamp:devfrom
FredrikMWold:fix/add-open-directory-to-floating-window-tag
Open

fix: adds "Open Directory" to the xdg-desktop-portal-gtk floating-window tag windowrule#5023
FredrikMWold wants to merge 1 commit intobasecamp:devfrom
FredrikMWold:fix/add-open-directory-to-floating-window-tag

Conversation

@FredrikMWold
Copy link
Contributor

Adds Open Directory dialogs to the floating-window Hyprland rule so those file chooser windows are treated the same as existing Open/Save dialogs. This fixes cases where xdg-desktop-portal-gtk and similar app dialogs would not open as centered floating windows.

example output from hyprctl clients

{
    "address": "0x5566bc419320",
    "mapped": true,
    "hidden": false,
    "at": [1288, 36],
    "size": [1266, 1398],
    "workspace": {
        "id": 2,
        "name": "2"
    },
    "floating": false,
    "monitor": 1,
    "class": "xdg-desktop-portal-gtk",
    "title": "Open Directory",
    "initialClass": "xdg-desktop-portal-gtk",
    "initialTitle": "Open Directory",
    "pid": 2005,
    "xwayland": false,
    "pinned": false,
    "fullscreen": 0,
    "fullscreenClient": 0,
    "overFullscreen": false,
    "grouped": [],
    "tags": ["default-opacity*"],
    "swallowing": "0x0",
    "focusHistoryID": 2,
    "inhibitingIdle": false,
    "xdgTag": "",
    "xdgDescription": "",
    "contentType": "none",
    "stableId": "18000112"
}

@FredrikMWold FredrikMWold force-pushed the fix/add-open-directory-to-floating-window-tag branch from 8462531 to 0bfcb31 Compare March 15, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant