-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Works for displays with more than one screen
Implements old unclutter root, onescreen and not options.
- Loading branch information
Showing
8 changed files
with
177 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
// vim:ts=4:sw=4:expandtab | ||
// vim:ts=4:sw=4:expandtab -*- c-basic-offset:4 tab-width:4 -*- | ||
#pragma once | ||
|
||
#include <X11/Xlib.h> | ||
|
||
void cursor_show(void); | ||
|
||
void cursor_hide(void); | ||
|
||
bool cursor_on_root_window(void); | ||
void cursor_find(Window *child, int *root_x, int *root_y); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
// vim:ts=4:sw=4:expandtab | ||
// vim:ts=4:sw=4:expandtab -*- c-basic-offset:4 tab-width:4 -*- | ||
#pragma once | ||
|
||
typedef struct match_t { | ||
char *name; | ||
int len; | ||
} match_t; | ||
|
||
typedef struct Config { | ||
long timeout; | ||
long jitter; | ||
bool exclude_root; | ||
bool ignore_scrolling; | ||
bool fork; | ||
bool debug; | ||
bool onescreen; | ||
bool ignore_matches; | ||
match_t *matches; | ||
} Config; | ||
|
||
typedef struct coordinates_t { | ||
int x; | ||
int y; | ||
} coordinates_t; | ||
|
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