Project

General

Profile

unexist.dev

Assorted tidbits and projects

Feature #176

Subtle does not honor 'Always on Top' set by the client

Added by Wael Nasreddine almost 14 years ago. Updated over 13 years ago.

Status:
Fixed
Priority:
Urgent
Category:
Feature
Target version:
-
Start date:
01/16/2011
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

Hello,

I set the Stick and Float properties to true for the VLC client, the VLC is also configured to be Always on Top, and I have this code in my subtle.rb

grab 'A-Tab' do                                                                                                                                                                                             
  clients = Subtlext::View.current.clients                                                                                                                                                                  
  selected = clients.select { |c| c.has_focus? }.first                                                                                                                                                      

  index = clients.index(selected)                                                                                                                                                                           

  index += 1                                                                                                                                                                                                
  index = 0 if index > clients.size - 1                                                                                                                                                                     

  clients[index].focus                                                                                                                                                                                      
end                                                                                                                                                                                                         

Which helps me toggle client focus, however when I change the focus of the client given that VLC and another client are on the same view, the VLC windows goes behind the one that has focus now..


Related issues

Related to Bug #241: floating windows are not kept on top.Fixed2011-08-02

History

#1 Updated by Christoph Kappel almost 14 years ago

  • Status changed from Unconfirmed to Confirmed

Yep, subtle currently ignores that. I will add it tomorrow.

#2 Updated by Wael Nasreddine almost 14 years ago

Christoph Kappel wrote:

Yep, subtle currently ignores that. I will add it tomorrow.

Thank you, I appreciate it :)

#3 Updated by Christoph Kappel almost 14 years ago

Hm, VLC menus don't work for me. Can you set VLC to the 'Always on Top' mode and post the output of xprop for the VLC window?

#4 Updated by Christoph Kappel almost 14 years ago

  • Status changed from Confirmed to Feedback

#5 Updated by Wael Nasreddine almost 14 years ago

Christoph Kappel wrote:

Hm, VLC menus don't work for me. Can you set VLC to the 'Always on Top' mode and post the output of xprop for the VLC window?

Of course,

here you go => http://pastie.org/1476994

#6 Updated by Wael Nasreddine almost 14 years ago

Wael Nasreddine wrote:

Christoph Kappel wrote:

Hm, VLC menus don't work for me. Can you set VLC to the 'Always on Top' mode and post the output of xprop for the VLC window?

Of course,

here you go => http://pastie.org/1476994

I think it's the property:

_NET_WM_STATE(ATOM) = _NET_WM_STATE_ABOVE

#7 Updated by Christoph Kappel almost 14 years ago

Nope, that is the state subtle sets to the window when you enable floating mode. A client mustn't set _NET_WM_STATE itself. I will check why I get no menus in VLC then.

#8 Updated by Wael Nasreddine almost 14 years ago

Christoph Kappel wrote:

Nope, that is the state subtle sets to the window when you enable floating mode. A client mustn't set _NET_WM_STATE itself. I will check why I get no menus in VLC then.

Hey Christoph

I didn't understand which menus you mean ? the File, Edit etc.. menus ? If that's the case and they are not showing up, try resetting VLC settings

$ killall vlc && mv ~/.config/vlc{,-old}

It should bring the menus back, if for some reason they are still not showing up, it might means that VLC was compile without WxGTK support

#9 Updated by Christoph Kappel over 13 years ago

  • Status changed from Feedback to Fixed

Since r2987 all floating windows stay on top and cannot be lowered under gravity windows anymore. I would say this issue is fixed.

Also available in: Atom PDF