aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2014-09-23 13:45:48 +0000
committerokan2014-09-23 13:45:48 +0000
commitca567c515e829d14facdedce8e5ca147a21d013c (patch)
tree01bdfe1b90adc803e6c16f9516d0a0d67c5b9b71 /screen.c
parent017bbd97a8b753da84f01ac4b854464c5ea5b997 (diff)
downloadcwm-ca567c515e829d14facdedce8e5ca147a21d013c.tar.gz
Move stuff that doesn't belong in group_init; while here, explicitly
initialize hideall and cycling.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 4486be3..9fc01d3 100644
--- a/screen.c
+++ b/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: screen.c,v 1.67 2014/09/08 20:11:22 okan Exp $
+ * $OpenBSD: screen.c,v 1.68 2014/09/23 13:45:48 okan Exp $
*/
#include <sys/param.h>
@@ -42,9 +42,12 @@ screen_init(int which)
TAILQ_INIT(&sc->clientq);
TAILQ_INIT(&sc->regionq);
+ TAILQ_INIT(&sc->groupq);
sc->which = which;
sc->rootwin = RootWindow(X_Dpy, sc->which);
+ sc->cycling = 0;
+ sc->hideall = 0;
conf_screen(sc);
xu_ewmh_net_supported(sc);
@@ -53,6 +56,12 @@ screen_init(int which)
screen_update_geometry(sc);
group_init(sc);
+ xu_ewmh_net_desktop_names(sc);
+ xu_ewmh_net_wm_desktop_viewport(sc);
+ xu_ewmh_net_wm_number_of_desktops(sc);
+ xu_ewmh_net_showing_desktop(sc);
+ xu_ewmh_net_virtual_roots(sc);
+
rootattr.cursor = Conf.cursor[CF_NORMAL];
rootattr.event_mask = SubstructureRedirectMask|SubstructureNotifyMask|
PropertyChangeMask|EnterWindowMask|LeaveWindowMask|