added menu on context menu on status indicators in status bar + minor fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-03-05 02:15:11 +03:00
parent 8cd61d9594
commit 655c58be91
3 changed files with 17 additions and 0 deletions

View File

@ -14,6 +14,9 @@
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
/* XXX try to avoid this... */
z-index: 9999;
}
.overlay-widget~.overlay-widget {
background: rgba(0, 0, 0, 0.3);

View File

@ -167,6 +167,7 @@ var StatusBarActions = actions.Actions({
},
path: 'gid',
// XXX show menu in the appropriate corner...
mark: function(item, gid, img){
gid = gid || this.current
var that = this
@ -181,6 +182,14 @@ var StatusBarActions = actions.Actions({
.click(function(){
that['toggle'+type.capitalize()]()
})
// toggle action menu...
// XXX show this in the appropriate corner...
.on('contextmenu', function(){
event.preventDefault()
event.stopPropagation()
that.browseActions('/'+ type.capitalize() +'/')
})
} else {
var type = item.attr('type')

View File

@ -28,6 +28,11 @@ var OverlayClassPrototype = {
.click(function(){
event.stopPropagation()
})
.on('contextmenu', function(){
event.preventDefault()
event.stopPropagation()
return false
})
.append(client))
if(options.focusable){