summaryrefslogtreecommitdiff
path: root/gtk/window-decorator/switcher.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-21Fix memory leaksSam Spilsbury1-4/+22
- Use gtk_main_quit (); - Don't create gconf clients where we don't need to
2011-02-21Update copyright infoSam Spilsbury1-0/+25
2011-02-19Cleanup init_settings some more, move the switcher stuff out into theSam Spilsbury1-0/+6
frame ctor and move USE_GCONF into one big ifdef
2011-02-18Add memory management to framesSam Spilsbury1-1/+36
We don't need to keep all the frame definitions around in memory all the time, so refcount them and only add them if we actually need them.
2011-02-17Add frames refcounting systemSam Spilsbury1-0/+1
2011-02-17Added simple frames management system.Sam Spilsbury1-1/+1
Right now this just keeps the frames in a private area and returns a pre-allocated frame, but it will be expanded to allow reference counting on frames and allocation on-demand
2011-02-17Generalize shadow_only decoration into window decorations listSam Spilsbury1-2/+0
Remove debug message
2011-02-16Generalize switcher into another decoration frame typeSam Spilsbury1-42/+48
2011-02-15Make the switcher a decoration frame.Sam Spilsbury1-36/+6
It is still separate to the normal "window type" decoration, but at least now it has access to everything it needs
2011-02-15Allow different font types in frames.Sam Spilsbury1-6/+6
Currently we used a single PangoContext and PangoFontDescription for everything ... this resulted in custom frames having the same titlebar size which wasn't any good. This commit changes a lot, namely: * Frame is now linked to the decoration object itself * Moved style windows into the frame * Moved font context and font description into the frame * Added API for getting the titlebar font size: obviously with the cairo decorations there isn't supposed to be any kind of visual difference here but with the metacity decorations we need to get that directly from libmetacity. It should be noted that these commits are in need of a cleanup ... which is coming in the next few commits.
2011-02-10Make the switcher window being override redirect.Sam Spilsbury1-5/+34
Previously the switcher window was a normal managed window (which the switcher plugin actually lied about, see SwitchWindow::managed), such that the decorators could pick it up and draw the switcher decoration. However now with reparenting, this means that whenever we actually manage and unmanage the switcher window (eg with map and unmap) it means we must also reparent the window, which floods the server with requests and makes the switcher slow. Since we don't interact with the switcher window, it makes no sense to manage it like this, so make it override redirect
2010-10-24Don't attempt to re-use buffer pixmaps.Sam Spilsbury1-17/+0
It's not safe to re-use these pixmaps, because there isn't any guaruntee that they haven't been nuked by compiz
2010-09-06[PATCH] Replace old gdk_draw_drawable method calls with cairo equivalents.Danny Baumann1-24/+6
2010-08-14Split gtk-window-decorator into filesSam Spilsbury1-0/+462