mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: add defence
This commit is contained in:
parent
a72c40a6b4
commit
4f96230ebf
1 changed files with 2 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ struct view *view_at(struct server *server, double lx, double ly,
|
||||||
*/
|
*/
|
||||||
struct view *view;
|
struct view *view;
|
||||||
wl_list_for_each (view, &server->views, link) {
|
wl_list_for_each (view, &server->views, link) {
|
||||||
|
if (!view->been_mapped)
|
||||||
|
continue;
|
||||||
if (_view_at(view, lx, ly, surface, sx, sy))
|
if (_view_at(view, lx, ly, surface, sx, sy))
|
||||||
return view;
|
return view;
|
||||||
if (!view->show_server_side_deco)
|
if (!view->show_server_side_deco)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue