window: Only advertise fullscreen menu item if client supports it
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 30 Oct 2012 22:07:02 +0000 (18:07 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 30 Oct 2012 22:07:02 +0000 (18:07 -0400)
commitefb948846fa598f9d14e6bfbba9591a3bb8819ef
tree2cbd2a0f910381cf8451854f1f02ce10a13cd463
parent9468708f70ee28f8819741d3354a5db9efee4231
window: Only advertise fullscreen menu item if client supports it

If the client doesn't set a fullscreen handler, we can't go fullscreen
and shouldn't advertise that in the window menu.  The menu implementation is
a little simplistic, so we just move the "Fullscreen" entry to the end of
the list and don't count it if we don't want it in the menu.

https://bugs.freedesktop.org/show_bug.cgi?id=47751
https://bugs.freedesktop.org/show_bug.cgi?id=48106
clients/window.c