On Mon, 30 Jan 2012 10:24:51 +0000 (GMT) Doyoun Kang <doyoun.kang@...>
> Oh... Changing window type by window manager is just for example. never
> mind. :)
> My question is "Could application change the window type in run-time?"
> For example, I made a Evas_Object using elm_win_add(NULL, ELM_WIN_BASIC). And
> then I changed the window type using ecore_x_netwm_window_type_set(xwin,
> ECORE_X_WINDOW_TYPE_UTILITY). Is this ok? If it is ok, below problem occurs...
this is "unexpected". basically a window manager will expect type to be fixed
before show of window. so changing while a window is visible will have most
likely bizarre if ANY effects in a wm. i'ts a very unexpected change and i
really don't think it's wise for apps to change it after window is shown.
that's why elm only lets u set it on creation - it's kind of hinting that u
never want to change it after that as its a "bad idea" :)
> ------- Original Message -------
> Sender : Carsten Haitzler<raster@...>
> Date : 2012-01-30 18:58 (GMT+09:00)
> Title : Re: [E-devel] [Patch] elm_win - added code to handle window type
> On Mon, 30 Jan 2012 07:39:03 +0000 (GMT) Doyoun Kang
> wtf? wm has no business changing window type - neither does any other process.
> window TYPE is defined by the owning app - it decides what type it is. this
> here is working around a bug in some other "rude" apps. :(
> > Dear all.
> > When the window type is changed by window manager or other daemon, elm_win
> > couldn't detect this change and didn't change Elm_Win's type. So, after some
> > operation (like elm_win_alpha_set or elm_win_transparent_set, etc.), window
> > type is changed to old type because Elm_Win's type was not changed. I added
> > code to handle changing window type. It added only x11 backend and used the
> > x-property change (ECORE_X_EVENT_WINDOW_PROPERTY). Please check the attached
> > patch file.
> > Thanks.
> > --
> > Doyoun Kang
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler) raster@...
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) raster@...