summaryrefslogtreecommitdiff
path: root/src/compositor/compositor-xrender.c
AgeCommit message (Collapse)AuthorFilesLines
2022-02-13Remove TRUE, FALSE from if statementrbuj1-5/+5
2022-01-27compositor-xrender: remove unrequired g_free because of g_new0rbuj1-5/+0
2022-01-27compositor-xrender: fix memory leakrbuj1-19/+33
2021-06-04window: Do not render shadows on left/right tiled windowsMartin Wimpress1-0/+13
This pull request prevents shadows being rendered for left and right side titled windows. This behaviour is consistent with maximised windows, which also do not render shadows. The rationale for this change is so that when two windows are titled along side each other, it prevents central shadows bleeding into the touching points of the windows. metacity-theme-x.xml has provision to style left/right titled windows. This patch makes it possible to to create window themes that present clean side-by-side tiled windows.
2021-03-08compositor-xrender.c: Make sure tooltips are visible when the sourceMichael Webster1-0/+89
widget is close to the edge of the work area. See inline comments - as of 3.24 tooltip positioning is handled differently, and under certain conditions in hidpi, tooltips for the bottom panel applets can end up off the bottom of the work area. To reproduce, in hidpi, set the bottom panel to approximately 30px tall and try to activate a tooltip for an applet on that panel.
2020-09-03compositor-xrender: Use USHRT_MAX macro from limits.hrbuj1-5/+6
2020-09-03compositor-xrender: Remove float-conversion warningrbuj1-4/+4
2020-08-04Remove multiple empty linesrbuj1-3/+0
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 'N;/^\n$/D;P;D;' {} \;
2020-05-27compositor: fix possible crash closing/destroying window . Fixes to previous ↵rcaridade1451-9/+27
commit. Partially restore call to destroy_win in compositor when calling meta_window_free. This is needed to ensure that we never call meta_window_get_frame_bounds while windows is destroying. https://bugzilla.gnome.org/show_bug.cgi?id=751833 Based on commit https://gitlab.gnome.org/GNOME/metacity/-/commit/a9f28dbc26f5211ef08889109db3dc8c7ba76aca
2020-04-02Remove unnecessary warnings about visible regionVictor Kareh1-5/+1
Also reformat recent code change to fix styling issues.
2020-03-08Guard against null changes introduced by previous commitrcaridade1451-2/+6
2019-12-06Revert "compositor: fix possible crash closing/destroying window"Victor Kareh1-25/+9
This reverts commit df56628979abc17474b001c58c28c6f3637ada9d. It causes an issue where windows remain in the background even when being drawn in the foreground.
2019-06-05compositor: fix possible crash closing/destroying windowVictor Kareh1-9/+25
Partially restore call to destroy_win in compositor when calling meta_window_free. This is needed to ensure that we never call meta_window_get_frame_bounds while windows is destroying. https://bugzilla.gnome.org/show_bug.cgi?id=751833 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/a9f28dbc
2019-06-05compositor: fix border_sizeVictor Kareh1-0/+23
upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/72003d38
2019-06-05compositor: fix shadow size and placementVictor Kareh1-6/+9
upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/9fd053da
2019-06-05compositor: don't draw shadow under decorationsVictor Kareh1-54/+56
upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/215dd8e9
2019-06-05compositor: add function to convert cairo region to xserver regionVictor Kareh1-0/+29
upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/28970472
2019-06-05compositor: don't draw shadow under windowsVictor Kareh1-8/+63
upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/5404d8f2
2019-03-05compositor-xrender: Fix memory leakPablo Barciela1-0/+2
Fixes Clang static analyzer warning: compositor/compositor-xrender.c:587:10: warning: Potential leak of memory pointed to by 'data' return ximage; ^~~~~~
2019-01-03compositor-xrender: avoid deprecated 'gdk_error_trap_push/pop'Pablo Barciela1-2/+4
2018-01-02compositor: don't try to paint window that is not viewable, fix #324Jan Niklas Hasse1-0/+3
Based on metacity commit: a0b8c85c4c0cfb9a378d7c5554af15fdd7703155 From: Alberts Muktupāvels <[email protected]>
2017-11-10XFIXES regions are leaked during paint_windows if more than oneJan Burgmeier1-2/+9
META_COMP_WINDOW_DESKTOP is available (#329)
2017-11-10Add stricter logic for running without XPresent supportVictor Kareh1-22/+29
2017-11-10Make XPresent optionalVictor Kareh1-18/+39
2017-11-10Remove debug outputVictor Kareh1-18/+3
2017-11-10Add in some changes from xfwm4Victor Kareh1-66/+155
2017-11-10Cancel present_pending flag when erroring outVictor Kareh1-11/+31
2017-11-10XPresent extension support - first passVictor Kareh1-26/+133
2017-05-10Revert "compositor: fix possible crash closing/destroying window"raveit651-25/+9
This reverts commit 768fdd8d3852e67555a585da28b6404a97853cbd. fixes probably "strange window switching foreground/background behavior" https://github.com/mate-desktop/marco/issues/251
2016-10-15move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-29/+0
2016-03-03[GTK+3] re-add ability to show alt-tab thumbnails when compositor is onmonsta1-0/+50
adapted from: https://git.gnome.org/browse/metacity/commit/?id=e6828a3ee2cab1ec1acbdd5a444dc1cb98215a75 https://git.gnome.org/browse/metacity/commit/?id=758902aef22629943738241cea1f597b6db4b18e https://git.gnome.org/browse/metacity/commit/?id=c6ba6dc7f458720d9f8666881f45a830580468cb https://git.gnome.org/browse/metacity/commit/?id=68bdf1ab9de815e07f5cd75b2e1fa24ba92ae319 https://git.gnome.org/browse/metacity/commit/?id=78bbf4423f72797a05bfaddd4121d70db30de9a3
2015-12-17compositor-xrender: include old shape in damageAlberts Muktupāvels1-0/+27
https://bugzilla.gnome.org/show_bug.cgi?id=755001
2015-10-13Revert "Repaint area of deleted shadowed windows (fixes #27)"Monsta1-19/+0
This reverts commit b53fb913abe7da1e8d56bd50151f673c90cf121d. Fixes https://github.com/mate-desktop/marco/issues/226
2015-09-14compositor: fix possible crash closing/destroying windowAlberts Muktupāvels1-9/+25
2015-09-14compositor: don't use invalid back_pixmapAlberts Muktupāvels1-1/+6
XCompositeNameWindowPixmap can generate BadMatch error. If this error is generated then returned pixmap is not valid. Just set back_pixmap to None in case of error.
2015-09-14bump xcomposite required version to 0.3 and simplify codeAlberts Muktupāvels1-150/+49
Version 0.3 is available more then 8 years.
2015-08-29Repaint area of deleted shadowed windows (fixes #27)bl0ckeduser1-0/+19
2014-11-26compositor: fix possible dereference of NULL pointermonsta1-5/+10
Closes https://github.com/mate-desktop/marco/pull/145
2014-11-25merge metacity(gtk3) changesDenis Gorodnichev1-10/+1
merge metacity(gtk3) changes fix warnings clean up unused variables replace UNUSED_VARIABLE by G_GNUC_UNUSED
2014-10-25Revert the new atom changes as they also got reverted later by metacityinfirit1-56/+1
Revert "Rename new ATOM from bc8eb8bd2f943b69c87eb7c9e154928f1dd861bb" This reverts commit 1bd64c3b7eca544f0722cb4c3ee7aa0ca5dd5ec4. Revert "compositor-xrender: add new atom - METACITY_WINDOW_HAVE_SHADOW" This reverts commit bc8eb8bd2f943b69c87eb7c9e154928f1dd861bb.
2014-10-25Rename new ATOM from bc8eb8bd2f943b69c87eb7c9e154928f1dd861bbinfirit1-5/+5
2014-10-25compositor-xrender: add new atom - METACITY_WINDOW_HAVE_SHADOWinfirit1-1/+56
Based on metacity commit: c52cd2e1d6ae50627bc9056ea6eae773e2aedfe5 From: Alberts Muktupāvels <[email protected]>
2014-10-24don't show shadow for maximized windowsinfirit1-1/+42
based on metacity commit: 72d1c6a6b9a85391444bb5ff8c5de1e3aabd3fd9 From: Alberts Muktupāvels <[email protected]>
2014-10-22compositor-xrender: don't add shadows to ARGB windowsMartin Wimpress1-0/+6
2014-06-26Remove all trailing whitespaces in the code treeJoaquín Ignacio Aramendía1-1/+1
Just run: $ find -name '*.c' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i $ find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
2014-05-27Ignore adding a window if it's already presenthordepfo1-0/+4
If a window is added and it's already in the compositor's window list, then it won't be added again. This was causing strange behaviour in the compositor (windows and panels disappearing).
2012-11-20Fix deprecations and compile warnings. Clean compileScott Balneaves1-2/+8
2012-11-18fixed incorrect fsf addresses.Steve Zesch1-2/+2
2012-11-11fix startup rendering effect with composite enabledNelson Marques1-0/+2
2012-08-12Update src/compositor/compositor-xrender.cPerberos1-4/+4
manually edit from fix-grey-compositor.patch sent by Leandro Vital to set the default background to black (instead of grey) when compositing.