I need to know if the client is maximized during workspace.clientAdded for my script. New Firefox windows can start maximized, which means my script isn't able to hide the titlebar until the user un-maximizes then maximizes (triggering client.clientMaximizedStateChanged).
(In reply to Chris Holland from comment #0) > I need to know if the client is maximized during workspace.clientAdded for > my script. New Firefox windows can start maximized, which means my script > isn't able to hide the titlebar until the user un-maximizes then maximizes > (triggering client.clientMaximizedStateChanged). Hi, client.minimized is exposed but not client.maximized :D As a workaround, did you try to check if the geometry is equal to the WorkArea ?
*** Bug 392279 has been marked as a duplicate of this bug. ***
At matrix channel #plasma-dev:kde.org Devin Lin made a remark that it's already exposed and pointed to https://invent.kde.org/plasma/kwin/-/blob/master/src/window.h#L483 * Whether the window is maximized horizontally, vertically or fully. * This is read only, in order to maximize from a script use * the setMaximize function * @see setMaximize */ Q_PROPERTY(KWin::MaximizeMode maximizeMode READ maximizeMode NOTIFY maximizedChanged) It looks like this issue is resolved and can be closed.
It seems this property is not documented at https://develop.kde.org/docs/plasma/kwin/api/