-
-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cursor_over_conky and override atoms
WIP commit - relative calculation is still off. Calculate relative valuators only once per event and cache results. Switch to finding top-level window before root. This made me reuse virtual root code so I refactored it and made it apply automatically in place of X11 macros. This means that all code in x11.cc will use virtual roots if they exist. Fixed query_x11_windows fallback to exclude windows without WM hints. I believe this is the correct way to ignore windows specific to some special WM functionality. Removed InputEvent and xev_as_input_event as they were being used in only a single place. Removed lua::state from x11_init_window arguments and replaced it with a struct containing needed data: - Makes a lot of code in the function look neater. - Removes weird class_name reference because lua setting value now stays allocated (has same lifetime) as the init function. - Reduces cost of accessing same settings (own_window_type) multiple times. - Helps decouple lua from x11 sources Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
- Loading branch information
Showing
6 changed files
with
334 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.