Commit Graph

26 Commits (52855b2493c35129cea28ccb37b26280d4e64b6d)

Author SHA1 Message Date
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 ea6d514a9d store big images in a lower resolution
There are common sizes in which images are
likely to be displayed in.
(smaller or equal to the screen size)
If images reach a specific resolution the
principle of spatial locality doesn't apply anymore
to resize operations to common sizes
(e.g. 6000x6000 to 300x300).
So to reduce cache misses and therefore avoid
a worse performance images are stored by default up to a size
which is about the same as the screen size.
Images will be fully loaded if it's required by their
image scaler or if they should be displayed with a size
which is bigger than the screen size.
5 years ago
seebye eff92580a4 implement delayed loading 5 years ago
seebye 51b018c2fc implement image loading strategies 5 years ago
seebye 7f2ac3355c hide old placement on failing to load a new image 5 years ago
seebye 484e325cd9 lazy load some modules / reduce python library import time 5 years ago
seebye c4c87e2a4b implement ImageScaler 5 years ago
seebye 4726d3caa5 cache resized images 5 years ago
seebye 685e49e164 force coroutine switch after synchronous drawing 5 years ago
seebye 71424ed33d bug fix: ensure redrawing on executing an action 5 years ago
seebye f5b6f1b463 reuse loaded images in add action 5 years ago
seebye d8ef4cfc2e implement synchronous drawing
Allow to redraw windows synchronously instead of scheduling a redraw
5 years ago
seebye c003b42fb1 BatchList support late initialisation
Allow to construct a BatchList with a empty list.
It will be initialised as soon as a element was added.
5 years ago
seebye 6ff676d3f3 remove redundant code
Exceptions are already catched on updating an image,
so these exceptions shouldn't be thrown here.
E.g. a corrupt image should lead to an exception on adding it -> not
added
6 years ago
seebye 52ddd63dd0 fix crash if image corrupt 6 years ago
seebye 3f1a2dc3e4 refactoring improve structure transfering execution results 6 years ago
seebye 6e0497dd9f check batchlist isn't empty before calling it 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 bfc992d941 refactoring: Command enum: remove redundancy
avoid referencing actions multiple times
6 years ago
seebye 068eb70306 refactoring: move action name to actions, more detailed inheritance 6 years ago
seebye a1dbb8fec9 reimplement actions as attr dataclasses 6 years ago
seebye a3d779efb4 respect initial pane offset on placing images 6 years ago
seebye 99297df75b bug fix: handling draw argument type bool and string 6 years ago
seebye a5d321c423 handle tmux window changes, session changes, new attached clients
by registering tmux hooks for the pane of ueberzug, hooked events:
- client-session-changed
- session-window-changed
- pane-mode-changed
6 years ago
seebye 7001a72eac workaround: prevent Xlib deathlocks 6 years ago
seebye cb42a9e4fc project renamed to Überzug 6 years ago