On Tue, 2007-03-06 at 00:34 +0100, Bellegarde Cedric wrote: > Le lundi 5 mars 2007, vous avez écrit : > > I have not looked at this problem yet. How is _NET_WM_ACTION_MOVE > > removed from the list of allowed actions? > > > > - David > > winrules plugin use a copy of compiz setWindowActions() as it's not > available > in compiz.h, maybe i'm missing something.... > It should be cool to have access to it instead of duplicate code. > > But i've got another problem with that: > > When a window emit a PropertyNotify with XA_WM_NORMAL_HINTS, compiz > handleEvents() call updateNormalHints () and recalcWindowActions () calling > setWindowActions(). > So, when winrules plugin set an action restriction, it is removed by > recalcWindowActions (). For exemple, every Kde apps living in systray emit > such a PropertyNotify after MapNotify. > > I have looked at kwin code, they do the same but at the end, they call an > updateAllowedActions() function not reseting locked actions. > > Maybe we can add a restrictActionMask to CompWindow allowing plugins to set > actions that should not be updated by setWindowActions() ?
Yes, it's not currently supported to restrict available actions. We need a getRestrictedActions screen function and a function that triggers recalculation of available actions. - David _______________________________________________ compiz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/compiz
