Removed duplicated context menus for windows
This commit is contained in:
parent
579c46f4f4
commit
780f63f1a0
|
@ -34,7 +34,6 @@ require("core.widgets.menubar")
|
||||||
awful.screen.connect_for_each_screen(function(s)
|
awful.screen.connect_for_each_screen(function(s)
|
||||||
-- Wallpaper
|
-- Wallpaper
|
||||||
set_wallpaper(s)
|
set_wallpaper(s)
|
||||||
|
|
||||||
-- Each screen has its own tag table.
|
-- Each screen has its own tag table.
|
||||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
|
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@ local awful = require("awful")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
local menu = require("widgets.polymenu")
|
local menu = require("widgets.polymenu")
|
||||||
|
-- To conserve memory we keep one menu at a time
|
||||||
|
if not menu_widget then
|
||||||
local move_screentags = {}
|
local move_screentags = {}
|
||||||
local toggle_screentags = {}
|
local toggle_screentags = {}
|
||||||
awful.screen.connect_for_each_screen(function(s)
|
awful.screen.connect_for_each_screen(function(s)
|
||||||
|
@ -43,13 +45,12 @@ awful.screen.connect_for_each_screen(function(s)
|
||||||
toggle_tags
|
toggle_tags
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
local controls_widget = wibox.widget {
|
controls_widget = wibox.widget {
|
||||||
forced_width = 72,
|
forced_width = 72,
|
||||||
forced_height = 24,
|
forced_height = 24,
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
}
|
}
|
||||||
-- To conserve memory we keep one menu at a time
|
menu_widget = menu({
|
||||||
local menu_widget = menu({
|
|
||||||
before = {
|
before = {
|
||||||
controls_widget
|
controls_widget
|
||||||
},
|
},
|
||||||
|
@ -83,6 +84,7 @@ local menu_widget = menu({
|
||||||
},
|
},
|
||||||
vertical = true
|
vertical = true
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
return function(c)
|
return function(c)
|
||||||
local buttons = gears.table.join(
|
local buttons = gears.table.join(
|
||||||
|
|
Loading…
Reference in New Issue