From 30aed3099e557d7096ac05b532415795e1b0ac39 Mon Sep 17 00:00:00 2001 From: crecher Date: Thu, 17 Sep 2026 18:50:53 +0200 Subject: BAR ACTUALLY KIS THE CORRECT COLOR NOW!!1 1 im an idiot :D --- main.go | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index c4f6905..373e87c 100644 --- a/main.go +++ b/main.go @@ -481,24 +481,6 @@ func switchTags(conn *xgb.Conn, tags BitMask) { updateWindows(conn) } -func switchTagsNew(conn *xgb.Conn, tags BitMask) { - GlobalTags = tags - // master := nil - // unmap everything - // - for _, client := range clients { - xproto.UnmapWindow(conn, client.Win) - if client.Tags >= tags && client.MasterTags != tags { - client.MasterTags = tags - master := client - } - } - - updateNew(conn, master) - - // find and map master window -> map next until next == nil -} - func tileVertical(conn *xgb.Conn) { screen := xproto.Setup(conn).DefaultScreen(conn) screenWidth := int(screen.WidthInPixels) @@ -647,10 +629,9 @@ func createBar(conn *xgb.Conn) { root := screen.Root // create the window - // TODO: make this actually black and not green for some reason :D cw := []uint32{ + config.BarColor, // should be black background xproto.EventMaskExposure, // redraw on expose - uint32(0x00000000), // "black" background (its green) } barWindow, _ = xproto.NewWindowId(conn) @@ -725,13 +706,6 @@ func getWindowTitle(conn *xgb.Conn, win xproto.Window) string { return string(prop.Value) } -func updateNew(conn *xgb.Conn, client Client) { - xproto.MapWindow(conn, client.Win) - if client.Next != nil { - updateNew(conn, *client.Next) - } -} - func updateWindows(conn *xgb.Conn) { ActiveClients = ActiveClients[:0] for _, client := range clients { -- cgit v1.2.3