Remix.run Logo
yjftsjthsd-h 3 days ago

> No title bars, no status bars, no buttons, no borders, no menus, etc.

> All windows are full-screen, just one is visible at any given time.

Oh, it's like cage ( https://github.com/cage-kiosk/cage ) for X11. I was wondering ex. how you'd even move windows around in that little code; the answer is "you don't":)

vidarh 2 days ago | parent | next [-]

This one lets you move windows around:

https://github.com/mackstann/tinywm/blob/master/tinywm.c

chmod775 2 days ago | parent | prev | next [-]

No it's not. It lets you cycle through active windows with a hotkey, lets you close the current window, and launches dmenu to let you open more applications.

mosquitobiten 2 days ago | parent | prev [-]

What's the point of the cage?

yjftsjthsd-h 2 days ago | parent [-]

It's probably for building appliance/kiosk systems, though it's handy for anything where you just want to run a single application fullscreen.

1718627440 2 days ago | parent [-]

If you want a single application fullscreen, you can just not start a window manager though.

p_l 2 days ago | parent [-]

In practice multiple applications get confused, and some don't support -geometry or equivalent.

One specific case I dealt with was Chrome/Chromium that provided all sorts of annoyances until we dropped in a minimal WM (back then it was awesomewm, I didn't know about cage or it didn't exist yet)

1718627440 a day ago | parent [-]

> applications get confused

Haven't had that yet. I thought of a single application the whole time, aka. kiosk, then it shouldn't matter.

p_l a day ago | parent [-]

In ye olden times, when most X11 applications understood "-geometry" and didn't try to do too much in absence of WM, things worked.

Chromium and possibly others (Chromium is just what I have personally dealt with) was confused about what did it mean to be fullscreen, and various other ideas regarding placing itself on screen.

I did success in making it work for a time, but it was problematic.