Hi,

On 05.09.2013 12:24, Vincent Bernat wrote:
> Some programs like to resize and replace themselves after start. This is
> annoying as they may move to another screen. For example, Wireshark is
> like that.
> 
> It uses GTK but ultimately, this is the call to XResizeWindow or
> XMoveResizeWindow which triggers this behaviour. Would it be possible to
> tell Awesome to ignore those?
> 
> If not, such a behaviour could be overrident with LD_PRELOAD. For
> example, there is already something done specifically for Steam about
> this:
>  https://github.com/dscharrer/steamwm
> 
> However, I would like something more generic that I could LD_PRELOAD for
> the whole session. Unfortunately, there are some legit use of
> XMoveResizeWindow. Would it be possible for Awesome to help me when to
> prevent such a resize? For example, is it possible for Awesome to set a
> property on a window that I could easily read when intercepting
> XMoveWindow?

There is no "easy" way to do this in awesome. No idea what you mean with that
property thing, but when a window resizes itself, the X11 server sends a
ConfigureRequest to awesome. This ends up in event.c,
event_handle_configurerequest() where awesome just allows that change. If you
know some C, this is the place were $MAGIC could be done to "defeat"
XMoveResizeWindow().

Uli
-- 
Sent from my Game Boy.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to