mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Merge pull request #798 from blueyed/fix-crash-in-screen_getbycoord
Fix crash in screen_getbycoord without any screens [ci skip]
This commit is contained in:
commit
ae17c66e27
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ screen_getbycoord(int x, int y)
|
|||
return *s;
|
||||
|
||||
/* No screen found, find nearest screen. */
|
||||
screen_t *nearest_screen = globalconf.screens.tab[0];
|
||||
screen_t *nearest_screen = NULL;
|
||||
unsigned int nearest_dist = UINT_MAX;
|
||||
foreach(s, globalconf.screens)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue