maximize

ninjabytes ninjabytes at gmail.com
Thu Aug 10 17:41:55 CEST 2006


Thanks for the prompt reply.

Does DevilsPie support the removal of "maximize" in specific windows, is
that possible with it?

Back in the day, with GNOME, I used a python code as follow:


import time
import wnck
import gobject from gtk
import gdk main = gobject.MainLoop()

class UNMax:
    def __init__(self):
        gobject.idle_add(self.getscreen)
        self.pattern = raw_input("Ingresar parte del titulo de la ventana:
").lower()
        self.quit = None

    def getscreen(self):
        self.screen = wnck.screen_get_default()
        gobject.idle_add(self.getwindows)
        return False

    def getwindows(self):
        self.windows = self.screen.get_windows()
        for window in self.windows:
            if self.pattern in window.get_name().lower():
                gobject.idle_add(self.unmaximify, window)

    def unmaximify(self, window):
        if self.quit is not None: gobject.source_remove(self.quit)
        print window.get_name()
        gwin = gdk.window_foreign_new(window.get_xid())
        gwin.set_functions(
gdk.FUNC_RESIZE|gdk.FUNC_MOVE|gdk.FUNC_MINIMIZE|gdk.FUNC_CLOSE)
        self.quit = gobject.idle_add(main.quit)

w = UNMax()
main.run()
Thanks!


2006/8/10, Jean-François Wauthy <pollux at xfce.org>:
>
> Le jeudi 10 août 2006 à 08:30 -0700, ninjabytes a écrit :
> > Hello,
> hi
>
> >
> > How can i disable the "maximize" of a window? (a specific window)
>
> out of the box there is no way to do such thing but may be you can using
> devilspie
>
> cheers
> >
> --
> Jean-François Wauthy <pollux at xfce.org>
>
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20060810/a857d5b6/attachment.html>


More information about the Xfce mailing list