hyprland-community / hyprland-rs

An unofficial rust wrapper for hyprland's IPC [maintainers=@yavko,@cyrinux]
Other
252 stars 56 forks source link

[BUG] Clients::get() invalid type: integer `0`, expected a boolean at line 21 column 19 #262

Closed FieldofClay closed 2 months ago

FieldofClay commented 2 months ago

Calling Clients::get() on hyprland 0.42 results in the following error:

invalid type: integer `0`, expected a boolean at line 21 column 19

Looks like 'fullscreen' in clients has changed from a boolean to an int.

0.41

{
    "address": "0x58eded1f58d0",
    "mapped": true,
    "hidden": false,
    "at": [2106, 127],
    "size": [1896, 1056],
    "workspace": {
        "id": 2,
        "name": "2 "
    },
    "floating": false,
    "pseudo": false,
    "monitor": 1,
    "class": "Alacritty",
    "title": "hyprctl clients -j ~",
    "initialClass": "Alacritty",
    "initialTitle": "Alacritty",
    "pid": 3021,
    "xwayland": false,
    "pinned": false,
    "fullscreen": false,
    "fullscreenMode": 0,
    "fakeFullscreen": false,
    "grouped": [],
    "tags": [],
    "swallowing": "0x0",
    "focusHistoryID": 0
}

0.42

{
    "address": "0x5afa47fdece0",
    "mapped": true,
    "hidden": false,
    "at": [4979, 163],
    "size": [943, 1020],
    "workspace": {
        "id": 3,
        "name": "3"
    },
    "floating": false,
    "pseudo": false,
    "monitor": 2,
    "class": "Alacritty",
    "title": "hyprctl clients -j ~",
    "initialClass": "Alacritty",
    "initialTitle": "Alacritty",
    "pid": 100628,
    "xwayland": false,
    "pinned": false,
    "fullscreen": 0,
    "fullscreenClient": 0,
    "grouped": [],
    "tags": [],
    "swallowing": "0x0",
    "focusHistoryID": 0
}
yavko commented 2 months ago

This is already fixed in main afaik.

yavko commented 2 months ago

I will probably work out a release this weekend

cyrinux commented 2 months ago

I push a tag 0.4.0-alpha.3 and publish the crate. But no more.