bahamondev / hide-titles

A Kwin script which hides window title when is maximized
GNU General Public License v3.0
13 stars 6 forks source link

Maximised applications started with session management, always no border #13

Open kayosiii opened 2 years ago

kayosiii commented 2 years ago

Unmaximising an application that was started automatically after login, will not remove the borderless condition.

renyuneyun commented 1 year ago

I'm experience similar issues but not with those started with session management automatically.

For me, the first set of firefox windows started maximized won't have their title bar recovered after leaving maximization. Thunderbird or other applications sometimes have the same behaviour, sometimes don't.

One exception is that Latte Dock's configuration page always does not have a title bar, and it does not seem to be maximized (because it won't "return to normal" if I manually move it to quit maximization). Of course, its strange size may be its own issue.

It looks like a result of this line of code: https://github.com/bahamondev/hide-titles/blob/f90279721933e3c80439c45d57c952a467b808a4/contents/code/main.js#L9

Essentially, if a window is started maximized, it will always have no boarder. I'm not entirely sure why this logic...