mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 13:45:21 +00:00
lib: don't propagate when creating inhibitor
This commit is contained in:
parent
232446389f
commit
04e2bf0b00
@ -176,7 +176,14 @@ mks_display_legacy_event_cb (MksDisplay *self,
|
|||||||
else if (event_type == GDK_BUTTON_PRESS)
|
else if (event_type == GDK_BUTTON_PRESS)
|
||||||
{
|
{
|
||||||
if (priv->inhibitor == NULL)
|
if (priv->inhibitor == NULL)
|
||||||
|
{
|
||||||
|
/* Don't allow click to pass through or the user may get
|
||||||
|
* a dialog in their face while something in the guest
|
||||||
|
* is grabbed.
|
||||||
|
*/
|
||||||
priv->inhibitor = mks_inhibitor_new (GTK_WIDGET (priv->picture), event);
|
priv->inhibitor = mks_inhibitor_new (GTK_WIDGET (priv->picture), event);
|
||||||
|
return GDK_EVENT_STOP;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (event_type == GDK_KEY_PRESS)
|
else if (event_type == GDK_KEY_PRESS)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user