[Gambas-user] gb.desktop.x11 (taskbar)

Benoît Minisini gambas at ...1...
Fri May 16 18:30:27 CEST 2014


Le 16/05/2014 18:15, herberth guzman a écrit :
> Hi Beno?t
>
> Send part of my code from my taskbar
> I have read a little about freedesktop and have seen some codes (they are
> all different)
> Really do not want to use one existing, I want one made ​​in Gambas3, is
> that why I need it.
>
> I would like that my whole project is developed in Gambas3.
>
> And thanks for your help and support.
>
> Regards.
>
>
> //////////////////////////////////////////////
>
> Public id_win_active As Integer
> Public HPanel_app As Panel
> Public hToggle As ToggleButton
>
> Public Sub _new()
>
> X11.SetWindowProperty(Atom["_NET_WM_WINDOW_TYPE"], Atom["ATOM"],
> Atom["_NET_WM_WINDOW_TYPE_DOCK"], f_taskbar.Id)
> X11.SetWindowProperty(Atom["_NET_WM_STRUT"], Atom["ATOM"], [0, 0, 0, 32],
> f_taskbar.Id)
> X11.SetWindowProperty(Atom["_NET_WM_STRUT_PARTIAL"], Atom["ATOM"], [0, 0,
> 0, 32, 0, 0, 0, 0, 0, 0, Desktop.H], f_taskbar.Id)
>
> '_NET_WM_USER_TIME (I have no idea)
>
> Desktop_Windows
>
> End
>

You should not do that in "_new", because your window may not have a 
window handle yet. Do that in the 'Open' event.

The _NET_WM_USER_TIME of the window must be set to X11.Time (which 
should be named X11.LastEventTime).

Regards,

-- 
Benoît Minisini




More information about the User mailing list