summaryrefslogtreecommitdiff
path: root/src/window.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-11-06Don't increase leave pendingMaps at a non-zero number once the window is mapped.Sam Spilsbury1-19/+19
We used to assume that for every MapRequest event that we got for which we also sent an XMapWindow that we would get a MapNotify. According to the man XMapWindow this doesn't make any sense since trying calling XMapWindow on an already mapped window for which we have SubstructureRedirectMask set results in a NoOp anyways (so we'll only ever get one MapNotify and multiple MapRequests). This fixes a case where no input focus would be set on closing windows with multiple remaining pendingMaps since we don't move the input focus if this is the case
2010-10-24core: general code cleanup (static analysis)Sam Spilsbury1-5/+5
2010-10-07Remove unused variables to silence warnings.Scott Moreau1-5/+1
2010-09-30Clean up isViewableSam Spilsbury1-4/+1
2010-08-28Better checking if the window is destroyed and use the default visualSam Spilsbury1-13/+28
and colormap, unless the window has request an ARGB one, in which case use that (like metacity). This fixes problems with windows which set incorrect colormap/visual combinations in their XSetWindowAttribs, like some SDL windows such as frozen-bubble and SDL/testwm
2010-08-20Merge branch 'master' of git+ssh://git.compiz.org/git/compiz/coreSam Spilsbury1-1/+1
2010-08-17Don't give all windows strutsJay Catherwood1-1/+1
2010-08-17Revert "Revert "Keep pixmaps of unmapped windows around if they are used for ↵Sam Spilsbury1-2/+13
animations."" This reverts commit e37b87173812da4af24c480a1adc9f8075a05e98.
2010-08-12Fix tooltip open animations not firingJay Catherwood1-33/+33
Sometimes tooltip open animations do not fire because they are set to viewable early on. This patch runs a map window notification when map is called even if the window is already viewable.
2010-08-13Revert "Keep pixmaps of unmapped windows around if they are used for ↵Sam Spilsbury1-13/+2
animations." This reverts commit 6c7d254d7f7b3706e9a6294a1c16c7cc9a05568f.
2010-08-11Use restack () instead of restackBelow () to ensure stack synchronousitySam Spilsbury1-1/+1
2010-08-10Don't free a local variable by creating a pointer to it and then notSam Spilsbury1-4/+4
knowing whether that pointer is actually heap or stack memory
2010-08-10Also include frame region in input region shapeSam Spilsbury1-1/+1
2010-08-10Make minimize, unminimize and minimized () functions wrappableSam Spilsbury1-11/+25
2010-08-10Revert "Call wrapped hide and show functions for minimize and unminimize and ↵Sam Spilsbury1-28/+15
also" This reverts commit 4e0bad2e7f8a1e16cec41f6909c19bab33d93e17.
2010-08-10Call wrapped hide and show functions for minimize and unminimize and alsoSam Spilsbury1-15/+28
unite frame region with input shaped region (so that decorations don't lose input)
2010-08-10Use anchor stacking point as either directly above or directly belowSam Spilsbury1-5/+11
window when reparenting windows
2010-08-10Merge branch 'master' of git+ssh://git.compiz.org/git/compiz/coreSam Spilsbury1-1/+4
2010-08-10Handle the ShapeInput and ShapeBounding XShape regionsSam Spilsbury1-34/+73
2010-08-09Fix gimp layers window disappearingJay Catherwood1-1/+4
This fixes bug 1303. Under certain circumstances restack ends up being called with the window as its own aboveId, causing it to disappear.
2010-06-19Revert "[PATCH] Handle dock windows with keep-below mask."Sam Spilsbury1-3/+6
This reverts commit 2fb7e4227d516cd2ba8b81e411bbfc0aca127943. Handling dock windows like this causes problems for docks that are set above windows (like plasma panel) we need to find a better way to handle these windows
2010-05-25[PATCH] Handle dock windows with keep-below mask.Sebasian Billaudelle1-6/+3
2010-05-19Return resName as CompString so it can't be modified by the caller.Danny Baumann1-2/+5
2010-05-18add resName getterTravis Watkins1-0/+6
2010-05-03Use corect calculationSam Spilsbury1-1/+1
2010-05-03TypofixSam Spilsbury1-1/+1
2010-05-02Optionally traverse through ancestry when getting the client leader of aDanny Baumann1-2/+8
window which has no own client leader set.
2010-04-04Avoid excessive casting.Danny Baumann1-10/+6
2010-04-04Correctly handle weird icon sizes.Sam Spilsbury1-3/+11
iw * ih may overflow the value range of unsigned long if iw and ih are large enough, so check the single values as well. Forward port of 1bed3dbcea6473f84745ec7a1f936c4f5d3b3a01 to master
2010-03-15Keep pixmaps of unmapped windows around if they are used for animations.Sam Spilsbury1-2/+13
Previously, they were discarded if the window was resized right after being unmapped. As that might end close animations too early, keep the pixmap around until setting the internal state to 'unmapped'. For those cases, the pixmap size (width/height) will differ from the window geometry (attrib.width/attrib.height), though, so plugins should use the former values for animation purposes. Forward port of 54833da0e3d8efb946dcb38afe27914a47f1565f to master
2010-02-12Place frame windows in correct stacking order.Dennis Kasprzyk1-5/+17
2010-02-12Unmap also the frame of minimized windows.Dennis Kasprzyk1-0/+3
2010-02-11Clients must specify position on _NET_MOVERESIZE_WINDOW ClientMessageSam Spilsbury1-1/+5
Only accept ConfigureRequest / _NET_MOVERESIZE_WINDOW ClientMessage events as placement if the application indicates that it wants to specify the window position. Forward port of 65ed618a5f36b795dbef69ba04ebde6b911d228c to master.
2010-02-10Window position doesn't have to be synced to update frame window region.Dennis Kasprzyk1-3/+4
2010-02-09Don't break initial stacking order.Dennis Kasprzyk1-5/+12
2010-02-08Fixed fullscreen window handling.Dennis Kasprzyk1-3/+1
2010-02-04Fixed missing variable.Dennis Kasprzyk1-1/+1
2010-02-04Reparent managed windows directly.Dennis Kasprzyk1-62/+111
2010-02-05Fix typo and fix more warningsSam Spilsbury1-5/+6
2010-02-05core: fix warningsSam Spilsbury1-8/+8
2010-02-04place: Improve resolution change handling.Sam Spilsbury1-5/+5
Windows are now moved/resized in a better way when changing resolution. Also, old window position and size will be remembered, so that they can be restored when going back to the original resolution. API changes were necessary in core, the functions ::updateStruts and ::updateWorkarea were moved from Private* to Comp* Forward port of 4327a7c83dc6c1fe77891ba7c6bf5023d21dfde8
2010-02-03Apply stacking changes after configureSam Spilsbury1-6/+5
2010-02-03Revert "Update client list after unhook/insert."Sam Spilsbury1-2/+0
This reverts commit 8c7459734c497d20fd8682b2268336ba31297f73.
2010-02-03Update client list after unhook/insert.Sam Spilsbury1-0/+2
Forward port of d8285f4f8c6ca50b69965a225c36cdad1e456d24
2010-02-03Activate the topmost window when lowering a window, unless click-to-focus is ↵Sam Spilsbury1-0/+51
off. Forward port of 85ba708cb894658c9bf9862a311010a9b79ec6f2 to master
2010-02-03Prevent sticky windows from moving off-screen.Sam Spilsbury1-20/+34
Forward port of f02bf9d435def37d4587014a4548e8d99401f19d to master
2010-02-03Fix lost window by bringing window made sticky to current viewport.Sam Spilsbury1-0/+22
Forward port of 4bc44131442e9dbefadcad1a46932aec44bbcada to master
2010-02-02Fix gravity handling.Sam Spilsbury1-11/+17
Forward port of 510c24577c47eb9d373a3817e0475187631a71e8
2010-02-02Fix icon property reading if the icon pixmap has a depth of 1 bit.Sam Spilsbury1-0/+2
Forward port of 4c7ffc4f1d82414a466fa0768d16fa96f30e3f7a to master
2010-02-02Fix window region calculation for windows that have border width set.Sam Spilsbury1-2/+2
Forward port of 79a275b240a98d9f64c8dd1e799e5d469ec8f204 to master