# Window rules.
#
# There is one, and it is about video.
#
# Everything else the classroom used to arrange by hand is ordinary window
# manager behaviour and needs no rule: a dialog stays in front of the window
# that opened it, a window a page opens floats over the browser instead of
# resizing it, and a print dialog is the window in front.
#
# There is deliberately no rule that maximises the browser. A rule can only
# match a window class, and Chrome gives its main window and every window a
# page opens the same one — matching on it maximised the lesson's popup to
# the whole display, which is the behaviour this architecture exists to
# stop. Chrome can tell them apart, so `--start-maximized` in the launcher
# does it: the first window fills the screen, later ones keep the size the
# page asked for. Arranging that from outside the browser is what the old
# 314-line window arbiter was doing.

[General]
count=1
rules=classroom-video

[classroom-video]
Description=Video is an appliance screen, not a window
# VLC reports its class as "Vlc", and KWin's matching is case sensitive —
# measured on a running session, where a lower-case substring rule matched
# nothing at all and said so nowhere.
wmclass=(?i)vlc
wmclassmatch=3
wmclasscomplete=false
noborder=true
noborderrule=2
