seebye
11aad51903
drop python-xlib
...
Python-xlib misses some essential features like shm support.
This is why the Xshm module was written,
but this leads to redundant dependencies.
So this commit removes python-xlib as dependency.
During the translation of the code the determination of the pid of a
window was also improved.
The XRes extension is now used to determine the pid of a window.
3 years ago
seebye
52b0b5e5b8
Fix race condition between creating a window and drawing on it
...
Reason:
Xshm is used to draw on windows (via original Xlib / c extension).
So there are at least two connections to the X11 server.
-> Race condition between drawing on windows (Xlib)
and creating them (python-Xlib)
5 years ago
seebye
51b018c2fc
implement image loading strategies
5 years ago
seebye
1c350477b2
implement signal handler: SIGWINCH
5 years ago
seebye
b407a818fe
remove unused attribute
5 years ago
seebye
e6e68d4aeb
improve padding calculation
...
if possible calculate the horizontal, vertical padding separately
5 years ago
seebye
462787b8d8
Cache hit / - miss takes scaling position into account
5 years ago
seebye
a7799e6fa9
fix line length, pep8
5 years ago
seebye
0a99da400d
discard handling of None values in calculation methods, refactoring
5 years ago
seebye
04b7fa7f47
bugfix: prevent crash if the window is bigger than the screen
5 years ago
seebye
d036689451
remove redundant code
5 years ago
seebye
c4c87e2a4b
implement ImageScaler
5 years ago
seebye
3a25f48d20
replace custom exception with built-in exception
5 years ago
seebye
2f40534476
remove unused imported modules
5 years ago
seebye
4726d3caa5
cache resized images
5 years ago
seebye
56be1a83b6
remove unused function add_overlay_text
5 years ago
seebye
5309bf70d4
remove info message on images "Multi pane windows aren't supported"
...
mention the lacking tmux multi pane window support
5 years ago
seebye
40138062cc
use shape_rectangles instead of shape_mask, Xshape
5 years ago
seebye
d7259d59ee
draw images by using shared memory
5 years ago
seebye
f5b6f1b463
reuse loaded images in add action
5 years ago
seebye
e0cf86e5f3
refactoring: fix pep8
5 years ago
seebye
52ddd63dd0
fix crash if image corrupt
6 years ago
seebye
8f4d685c62
lazily redraw windows by using asyncio
...
- drop unused mask extraction
- load images on first draw
- LineReader: read lines instantly if the file has data
(used for reading stdin)
6 years ago
seebye
f4b0b7d56f
display warning: multi pane windows aren't supported
6 years ago
seebye
a3d779efb4
respect initial pane offset on placing images
6 years ago
seebye
a93597982b
increase image quality by using anti alias
6 years ago
seebye
830a1d6d01
fallback to X11 to determine the window dimensions of the terminal
...
emulator
6 years ago
seebye
7001a72eac
workaround: prevent Xlib deathlocks
6 years ago
seebye
b8988aa46a
fix: draw by python-Xlib unsupported images
6 years ago
seebye
cb42a9e4fc
project renamed to Überzug
6 years ago