You were right, that was the issue. My next question is how I can get the
value of a window's "user specified location" from the Window object. This
is what the property looks like in xprop
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: 0, 0
user specified size: 2560 by 1440
window gravity: Static
The get_normal_hints() method of the Window class looks like this:
def get_wm_normal_hints(self):
wm_normal_hints = self.get_property(
"WM_NORMAL_HINTS",
xcffib.xproto.GetPropertyType.Any
)
if wm_normal_hints:
atom_list = wm_normal_hints.value.to_atoms()
flags = {k for k, v in NormalHintsFlags.items() if atom_list[0] &
v}
return {
"flags": flags,
"min_width": atom_list[1 + 4],
"min_height": atom_list[2 + 4],
"max_width": atom_list[3 + 4],
"max_height": atom_list[4 + 4],
"width_inc": atom_list[5 + 4],
"height_inc": atom_list[6 + 4],
"min_aspect": atom_list[7 + 4],
"max_aspect": atom_list[8 + 4],
"base_width": atom_list[9 + 4],
"base_height": atom_list[9 + 4],
"win_gravity": atom_list[9 + 4],
}
It doesn't look like "user specified location" is in the dictionary
returned by that method. Is there a way to capture this hint?
On Friday, May 15, 2020 at 11:16:56 AM UTC-4, Tycho Andersen wrote:
>
> On Fri, May 15, 2020 at 06:32:02AM -0700, Eric Joshua Hernandez wrote:
> > I'm trying to see if i can integrate qtile with KDE plasma. To do this
> > properly I need to deal with the plasma desktop windows plasmashell
> > generates. For now i'm content with just closing them but ideally they
> > would be moved to the correct screen and not be focusable, always under
> > other windows. I figure i need to have a function like this
> > @hook.subscribe.client_new
> > def deal_with_plasma(window):
> >
> >
> > But i'm not treally sure what to do next. I tried something like
> > if window.window.match() =="something goes here":
> > But qtile complains that there's no such attribute.
>
> I think you just want window.match(), but it's hard to know without
> seeing the exact code and error message.
>
> Tycho
>
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/411a904b-9bb1-4c12-b4eb-ad73a7bee47f%40googlegroups.com.