New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[very wip] window-rules in support of lxqt-panel #787
Conversation
What is the reason for the new unmanaged_xdg struct? Couldn't we just (re)parent to the always_on_top_tree directly based on the rule match, same for the SSD? |
In the way of high-level thoughts, I have a question: is the end-goal that lxqt-panel (or any other panel for that matter) uses layer-shell? Or are these rules an alternative method to run a (Qt) panel, without layer-shell? What lxqt-panel ends up doing is particularly of interest to me since I would likely follow the same approach with qmpanel.
Is it possible that the default configuration is in fact an empty, transparent panel? It's been a while since I ran lxqt-panel, but this sounds vaguely familiar. |
My 2 cents: From the labwc side I think we can support 2 ways for panels:
The window rule thing I personally see with a different goal, not specific to panels: Allow users to do some automation for views based on app_id or title. They can also be used for panels obviously but panels should not rely on them. |
I've no problems to have the panel visible on labwc.
A second panel added is empty, the first one should take it's default config which segfaults afaik due to the desktop switch plugin. Here's a working config, Will test the draft as soon as I find time.
It's not only the panel in fact: some rules could be very useful for |
Isn't that (desktop icons/folder view) also a use-case that layer-shell is meant to serve? |
Sure, but porting pcmanfm-qt to wayland is in the future. |
BTW this will work really fine per |
b09c736
to
2115c60
Compare
…t-panel Related-to: #768
Background: @Consolatis, @jlindgren90: So, I'm exploring ways to run q5/6/gtk4 applications Yes, of course layer-shell it the preferred method, but if it is going to be What I hadn't realised until a couple of weeks ago was that So I started thinking about how we could do this without creating a monster This PR is an experiment to test a theory that for a panel, desktop-client
...which led me to think that if we turned traditional window-rules concept on <applications>
<application app_id="lxqt-panel">
<unmanaged layer="top" />
<position x="0" y="0" />
</application>
</applications> <margins top="30" bottom="0" right="0" left="0" output="WL-1" /> With 'traditional' window-rules we'd have to do some sort of implementation And, yes - of course it's a manual mini-layer-shell implementation and one From a user perspective, the main disadvantages is that So, yes, it's a compromise in making labwc usable to communities such as References
It looks like wayfire can also associated rules with events - but I suspect Examples of rules include:
X11 Window types:
Kwin plasma-shell roles include:
|
2115c60
to
93aff4e
Compare
@johanmalm Nice writeup and thanks for your efforts!
FYI
|
This will be probably the situation with any compositor, some changes to the default config files are needed. My idea is that in |
Leaving this one open for now, but see #933 for latest development. |
Is this PR still relevant now that we have window rules? |
Agree. Will close |
Related-to: #768
I'm not sure if this is a good idea, but would appreciate high-level thoughts on it.
Please ignore ugly code, etc - it's the general idea I'm wanting to test.
I can't get
lxqt-panel
to work on my machine (just get a completely transparent panel - both on labwc and openbox).Have tested with this little script: