{"action":"created","issue":{"url":"https://api.github.com/repos/yshui/compton/issues/252","repository_url":"https://api.github.com/repos/yshui/compton","labels_url":"https://api.github.com/repos/yshui/compton/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/yshui/compton/issues/252/comments","events_url":"https://api.github.com/repos/yshui/compton/issues/252/events","html_url":"https://github.com/yshui/compton/issues/252","id":507368217,"node_id":"MDU6SXNzdWU1MDczNjgyMTc=","number":252,"title":"Failed to load a swap control extension.","user":{"login":"mistiru","id":56602389,"node_id":"MDQ6VXNlcjU2NjAyMzg5","avatar_url":"https://avatars0.githubusercontent.com/u/56602389?v=4","gravatar_id":"","url":"https://api.github.com/users/mistiru","html_url":"https://github.com/mistiru","followers_url":"https://api.github.com/users/mistiru/followers","following_url":"https://api.github.com/users/mistiru/following{/other_user}","gists_url":"https://api.github.com/users/mistiru/gists{/gist_id}","starred_url":"https://api.github.com/users/mistiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistiru/subscriptions","organizations_url":"https://api.github.com/users/mistiru/orgs","repos_url":"https://api.github.com/users/mistiru/repos","events_url":"https://api.github.com/users/mistiru/events{/privacy}","received_events_url":"https://api.github.com/users/mistiru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-10-15T16:57:53Z","updated_at":"2019-10-15T19:34:40Z","closed_at":null,"author_association":"NONE","body":"<!-- The template below is for reporting bugs. For feature requests and others, feel free to delete irrelevant entries. -->\r\n\r\n### Platform\r\n<!-- Example: Ubuntu Desktop 17.04 amd64 -->\r\nArch Linux 5.3.6-arch1-1-ARCH\r\n\r\n### GPU, drivers, and screen setup\r\n<!--\r\n    Example: NVidia GTX 670, nvidia-drivers 381.09, two monitors configured side-by-side with xrandr\r\n    Please include the version of the video drivers (xf86-video-*) and mesa.\r\n    Please also paste the output of `glxinfo -B` here.\r\n -->\r\nInside Virtual Box 6.0.12r133076 running on Windows  \r\nOne monitor  \r\nNo xf86-video-* driver installed  \r\nMesa 19.2.1\r\n\r\n### Environment\r\n<!-- Tell us something about the desktop environment you are using, for example: i3-gaps, Gnome Shell, etc. -->\r\nUsing awesomeWM\r\n\r\n### Compton version\r\n<!-- Put the output of `compton --version` here. -->\r\n<!-- If you are running compton v4 or later, please also include the output of `compton --diagnostics` -->\r\n<!-- Example: v1 -->\r\nCompton 7.4\r\n```\r\n$ compton --diagnostics\r\n[ 10/15/2019 18:45:08.700 vsync_opengl_swc_init ERROR ] Failed to load a swap control extension.\r\n[ 10/15/2019 18:45:08.700 session_init FATAL ERROR ] Failed to initialize the backend\r\n```\r\n\r\n### Compton configuration:\r\n```\r\n# Thank you code_nomad: http://9m.no/ꪯ鵞\r\n# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton\r\n\r\n#################################\r\n#\r\n# Backend\r\n#\r\n#################################\r\n\r\n# Backend to use: \"xrender\" or \"glx\".\r\n# GLX backend is typically much faster but depends on a sane driver.\r\nbackend = \"glx\";\r\n\r\n#################################\r\n#\r\n# GLX backend\r\n#\r\n#################################\r\n\r\nglx-no-stencil = true;\r\n\r\n# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.\r\n# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,\r\n# but a 20% increase when only 1/4 is.\r\n# My tests on nouveau show terrible slowdown.\r\nglx-copy-from-front = false;\r\n\r\n# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.\r\n# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.\r\n# May break VSync and is not available on some drivers.\r\n# Overrides --glx-copy-from-front.\r\n# glx-use-copysubbuffermesa = true;\r\n\r\n# GLX backend: Avoid rebinding pixmap on window damage.\r\n# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).\r\n# Recommended if it works.\r\n# glx-no-rebind-pixmap = true;\r\n\r\n# GLX backend: GLX buffer swap method we assume.\r\n# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).\r\n# undefined is the slowest and the safest, and the default value.\r\n# copy is fastest, but may fail on some drivers,\r\n# 2-6 are gradually slower but safer (6 is still faster than 0).\r\n# Usually, double buffer means 2, triple buffer means 3.\r\n# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.\r\n# Useless with --glx-use-copysubbuffermesa.\r\n# Partially breaks --resize-damage.\r\n# Defaults to undefined.\r\n#glx-swap-method = \"undefined\";\r\n\r\n#################################\r\n#\r\n# Shadows\r\n#\r\n#################################\r\n\r\n# Enabled client-side shadows on windows.\r\nshadow = true;\r\n# The blur radius for shadows. (default 12)\r\nshadow-radius = 5;\r\n# The left offset for shadows. (default -15)\r\nshadow-offset-x = -5;\r\n# The top offset for shadows. (default -15)\r\nshadow-offset-y = -5;\r\n# The translucency for shadows. (default .75)\r\nshadow-opacity = 0.5;\r\n\r\n# Set if you want different colour shadows\r\n# shadow-red = 0.0;\r\n# shadow-green = 0.0;\r\n# shadow-blue = 0.0;\r\n\r\n# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches\r\n# (most applications are fine, only apps that do weird things with xshapes or argb are affected).\r\n# This list includes all the affected apps I found in my testing. The \"! name~=''\" part excludes shadows on any \"Unknown\" windows, this prevents a visual glitch with the XFWM alt tab switcher.\r\nshadow-exclude = [\r\n    \"! name~=''\",\r\n    \"name = 'Notification'\",\r\n    \"name = 'Plank'\",\r\n    \"name = 'Docky'\",\r\n    \"name = 'Kupfer'\",\r\n    \"name = 'xfce4-notifyd'\",\r\n    \"name *= 'VLC'\",\r\n    \"name *= 'compton'\",\r\n    \"name *= 'Chromium'\",\r\n    \"name *= 'Chrome'\",\r\n    \"class_g = 'Firefox' && argb\",\r\n    \"class_g = 'Conky'\",\r\n    \"class_g = 'Kupfer'\",\r\n    \"class_g = 'Synapse'\",\r\n    \"class_g ?= 'Notify-osd'\",\r\n    \"class_g ?= 'Cairo-dock'\",\r\n    \"class_g ?= 'Xfce4-notifyd'\",\r\n    \"class_g ?= 'Xfce4-power-manager'\",\r\n    \"_GTK_FRAME_EXTENTS@:c\",\r\n    \"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'\"\r\n];\r\n# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)\r\nshadow-ignore-shaped = false;\r\n\r\n#################################\r\n#\r\n# Opacity\r\n#\r\n#################################\r\n\r\ninactive-opacity = 1;\r\nactive-opacity = 1;\r\nframe-opacity = 1;\r\ninactive-opacity-override = false;\r\n\r\n# Dim inactive windows. (0.0 - 1.0)\r\n# inactive-dim = 0.2;\r\n# Do not let dimness adjust based on window opacity.\r\n# inactive-dim-fixed = true;\r\n# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.\r\n# blur-background = true;\r\n# Blur background of opaque windows with transparent frames as well.\r\n# blur-background-frame = true;\r\n# Do not let blur radius adjust based on window opacity.\r\nblur-background-fixed = false;\r\nblur-background-exclude = [\r\n    \"window_type = 'dock'\",\r\n    \"window_type = 'desktop'\"\r\n];\r\n\r\n#################################\r\n#\r\n# Fading\r\n#\r\n#################################\r\n\r\n# Fade windows during opacity changes.\r\nfading = true;\r\n# The time between steps in a fade in milliseconds. (default 10).\r\nfade-delta = 4;\r\n# Opacity change between steps while fading in. (default 0.028).\r\nfade-in-step = 0.03;\r\n# Opacity change between steps while fading out. (default 0.03).\r\nfade-out-step = 0.03;\r\n# Fade windows in/out when opening/closing\r\n# no-fading-openclose = true;\r\n\r\n# Specify a list of conditions of windows that should not be faded.\r\nfade-exclude = [ ];\r\n\r\n#################################\r\n#\r\n# Other\r\n#\r\n#################################\r\n\r\n# Try to detect WM windows and mark them as active.\r\nmark-wmwin-focused = true;\r\n# Mark all non-WM but override-redirect windows active (e.g. menus).\r\nmark-ovredir-focused = true;\r\n# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.\r\n# Usually more reliable but depends on a EWMH-compliant WM.\r\nuse-ewmh-active-win = true;\r\n# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.\r\ndetect-rounded-corners = true;\r\n\r\n# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.\r\n# This prevents opacity being ignored for some apps.\r\n# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.\r\ndetect-client-opacity = true;\r\n\r\n# Specify refresh rate of the screen.\r\n# If not specified or 0, compton will try detecting this with X RandR extension.\r\nrefresh-rate = 0;\r\n\r\n# Vertical synchronization: match the refresh rate of the monitor\r\nvsync = true;\r\n\r\n# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.\r\n# Reported to have no effect, though.\r\ndbe = false;\r\n\r\n# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.\r\n# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,\r\n# unless you wish to specify a lower refresh rate than the actual value.\r\n#sw-opti = true;\r\n\r\n# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.\r\n# Known to cause flickering when redirecting/unredirecting windows.\r\nunredir-if-possible = false;\r\n\r\n# Specify a list of conditions of windows that should always be considered focused.\r\nfocus-exclude = [ ];\r\n\r\n# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.\r\ndetect-transient = true;\r\n# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.\r\n# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.\r\ndetect-client-leader = true;\r\n\r\n#################################\r\n#\r\n# Window type settings\r\n#\r\n#################################\r\n\r\nwintypes:\r\n{\r\n    tooltip =\r\n    {\r\n        # fade: Fade the particular type of windows.\r\n        fade = true;\r\n        # shadow: Give those windows shadow\r\n        shadow = false;\r\n        # opacity: Default opacity for the type of windows.\r\n        opacity = 0.85;\r\n        # focus: Whether to always consider windows of this type focused.\r\n        focus = true;\r\n    };\r\n};\r\n\r\n######################\r\n#\r\n# XSync\r\n# See: https://github.com/yshui/compton/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d\r\n#\r\n######################\r\n\r\n# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.\r\nxrender-sync-fence = true;\r\n```\r\n\r\n### Steps of reproduction\r\n<!--\r\n    If you can reliably reproduce this bug, please describe the quickest way to do so\r\n    This information will greatly help us diagnosing and fixing the issue.\r\n -->\r\n\r\n1. Open terminal\r\n2. Run `compton`\r\n\r\n### Expected behavior\r\n\r\nCompton is running, the background of my terminal becomes transparent.\r\n\r\n### Current Behavior\r\n\r\nThe following error occurs\r\n```\r\n[ 10/15/2019 18:52:55.995 vsync_opengl_swc_init ERROR ] Failed to load a swap control extension.\r\n[ 10/15/2019 18:52:55.995 session_init FATAL ERROR ] Failed to initialize the backend\r\n```\r\n\r\n### Stack trace\r\n<!--\r\n    If compton crashes, please make sure your compton is built with debug info, and provide a stack trace of compton when it crashed.\r\n    Note, when compton crashes in a debugger, your screen might look frozen. But gdb will likely still handle your input if it is focused.\r\n    Often you can use 'bt' and press enter to get the stack trace, then 'q', enter, 'y', enter to quit gdb.\r\n -->\r\n\r\n<!-- Or, you can enable core dump, and upload the core file and the compton executable here. -->\r\nI'm sorry, I'm quite noob, I use the package provided by Arch Linux `community` repository.  \r\nMaybe someone could teach me how to do that, if the information is necessary. I would like to help.\r\n\r\n### Other details\r\n<!-- If your problem is visual, you are encouraged to record a short video when the problem occurs and link to it here. -->\r\n"},"comment":{"url":"https://api.github.com/repos/yshui/compton/issues/comments/542370447","html_url":"https://github.com/yshui/compton/issues/252#issuecomment-542370447","issue_url":"https://api.github.com/repos/yshui/compton/issues/252","id":542370447,"node_id":"MDEyOklzc3VlQ29tbWVudDU0MjM3MDQ0Nw==","user":{"login":"mistiru","id":56602389,"node_id":"MDQ6VXNlcjU2NjAyMzg5","avatar_url":"https://avatars0.githubusercontent.com/u/56602389?v=4","gravatar_id":"","url":"https://api.github.com/users/mistiru","html_url":"https://github.com/mistiru","followers_url":"https://api.github.com/users/mistiru/followers","following_url":"https://api.github.com/users/mistiru/following{/other_user}","gists_url":"https://api.github.com/users/mistiru/gists{/gist_id}","starred_url":"https://api.github.com/users/mistiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistiru/subscriptions","organizations_url":"https://api.github.com/users/mistiru/orgs","repos_url":"https://api.github.com/users/mistiru/repos","events_url":"https://api.github.com/users/mistiru/events{/privacy}","received_events_url":"https://api.github.com/users/mistiru/received_events","type":"User","site_admin":false},"created_at":"2019-10-15T19:34:40Z","updated_at":"2019-10-15T19:34:40Z","author_association":"NONE","body":"The error does not appear without the `vsync = true` line."}}
{"actor":{"display_login":"mistiru"}}