Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unredir-if-possible froze screen #160

Closed
alaviss opened this issue Apr 21, 2019 · 7 comments
Closed

unredir-if-possible froze screen #160

alaviss opened this issue Apr 21, 2019 · 7 comments

Comments

@alaviss
Copy link

alaviss commented Apr 21, 2019

Platform

Gentoo amd64

GPU, drivers, and screen setup

Intel HD 5500 on modesetting driver, mesa 18.3.6

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)  (0x1616)
    Version: 18.3.6
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.3.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 18.3.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Environment

i3-gaps

Compton version

compton --version: v6-rc1-122-g72ede42
compton --diagnostics:

**Version:** v6-rc1-122-g72ede42

### Extensions:

* Shape: Yes
* XRandR: Yes
* Present: Present

### Misc:

* Use Overlay: Yes
* Config file used: /home/leorize/local/config/compton.conf

### Drivers (inaccurate):

modesetting

Compton configuration:

unredir-if-possible: true;

Steps of reproduction

  1. run compton

Expected behavior

Not freezing the screen

Current Behavior

Froze the screen

@yshui
Copy link
Owner

yshui commented Apr 24, 2019

Does the screen freeze happen immediately after you start compton?

Also IIUC, this problem doesn't happen at all if you set unredir-if-possible to false?

@alaviss
Copy link
Author

alaviss commented Apr 24, 2019

Yep, all correct.

@yshui
Copy link
Owner

yshui commented Apr 24, 2019

Can you run compton with --log-level=trace --log-file=compton.log, and upload compton.log?

@alaviss
Copy link
Author

alaviss commented Apr 24, 2019

Here you go: compton.log

Command line was:

compton --config /dev/null --unredir-if-possible --log-level=trace --log-file=compton.log

@yshui
Copy link
Owner

yshui commented Apr 25, 2019

@alaviss I added some debug prints to the redir-debug branch, can you get a log file with that branch?

@alaviss
Copy link
Author

alaviss commented Apr 26, 2019

Here's the log with redir-debug branch: compton.log

@yshui yshui closed this as completed in f38ae36 Apr 27, 2019
yshui added a commit that referenced this issue Apr 27, 2019
Reduce code duplication, also handle_new_window handles damage of mapped
windows properly.

Fixes #160

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
@yshui
Copy link
Owner

yshui commented Apr 27, 2019

@alaviss Should be fixed in next

yshui added a commit that referenced this issue May 21, 2019
It used to be unmap when we receive its MapNotify, but now since we discard
events received before we grab X server, that event it lost. But it
turns out we can just unmap it when it's first created, no need to wait
for the MapNotify.

Partially fix #160

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
yshui added a commit that referenced this issue May 21, 2019
Reduce code duplication, also handle_new_window handles damage of mapped
windows properly.

Fixes #160

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants