On Tue, 27 Dec 2016 23:57:31 +0000 Daniel c. Würl <[email protected]> said:

> Am Tue, 27 Dec 2016 08:18:50 +0900
> schrieb Carsten Haitzler <[email protected]>:
> 
> > On Mon, 26 Dec 2016 15:32:05 +0000 Daniel c. Würl
> > <[email protected]> said:
> > 
> > > Hi,
> > > 
> > > 
> > > could somebody hint me at how to set netwm struts on a elementary
> > > window using python (or to where I find documentation regarding
> > > this)?
> > > 
> > > I've searched through the documentation provided at
> > > https://docs.enlightenment.org/python-efl/current/, but couldn't
> > > find anything, and wouldn't know where to look next.
> > 
> > errrr. you don't set structs on a window. the wm would be setting
> > this as properties on the x11 root window for apps to read and use...
> > 9and monitor and re-read if they change). if anything...
> 
> Ok, my bad for being a bit unspecific. I meant "how to tell the wm to
> reserve some space for my window" (I'm writing a panel).
> I just don't know how to this using python efl.
> I've already set the window to ELM_WIN_DOCK, and it is sticky and not
> shown in the window list, but when I maximize a window my panel is
> obscured, which I would wish to avoid somehow.

well by the way we have designed enlightenment and efl... no APP should be a
panel. that's the window manager's job. wm struts is for the gnome/kde style
design of your desktop being 10 or 15 different processes all kind of fighting
over who does what and somehow managing to work. we do not design like that and
this actually CANNOT work in wayland anyway without the wm/compositor
explicitly doing this. the whole idea of wm struts is non-portable.

at BEST if you create a panel type of window the wm would CHOOSE to place you
along a screen boundary and thus move/resize apps to not overlap such a panel
(in wayland land) and this also works in x11 too. if of course you want to make
your filemanager control your background and have it fill the screen and place
icons in its window then you need to know where these panels are, but again
this isn't really portable, so realistically the window manager should just
move/resize the filemanager surface to not overlap a panel and presto - it
knows due to that.

but in the end the result is... there is no api to do this because really...
there should not be such an api. it's not the kind of philosophy enlightenment
follows thus efl doesn't either. these things should be taken care of by the
window manager itself.

the simple version is "whatever you are trying to do... don't do it and have
the wm take care of it all as part of the desktop" :)

> > > Any help would be greatly appreciated ;)
> > > 
> > > Python Bindings for Enlightenment Foundation
> > > Libraries ...<https://docs.enlightenment.org/python-efl/current/>
> > > docs.enlightenment.org Python Bindings for Enlightenment Foundation
> > > Libraries' documentation¶ EFL is a collection of libraries that are
> > > independent or may build on top of each-other to ...
> > > 
> > > 
> > > ------------------------------------------------------------------------------
> > > Developer Access Program for Intel Xeon Phi Processors
> > > Access to Intel Xeon Phi processor-based developer platforms.
> > > With one year of Intel Parallel Studio XE.
> > > Training and support from Colfax.
> > > Order your platform today.http://sdm.link/intel
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > 
> > 
> > 
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to