mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
@@ -574,6 +574,8 @@ popover_map_cb (GtkWidget *widget, ClapperGtkExtraMenuButton *self)
|
|||||||
|
|
||||||
GST_TRACE_OBJECT (self, "Popover map");
|
GST_TRACE_OBJECT (self, "Popover map");
|
||||||
|
|
||||||
|
gtk_widget_set_can_focus (widget, TRUE);
|
||||||
|
|
||||||
if (G_UNLIKELY (self->player == NULL))
|
if (G_UNLIKELY (self->player == NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -608,6 +610,11 @@ popover_unmap_cb (GtkWidget *widget, ClapperGtkExtraMenuButton *self)
|
|||||||
|
|
||||||
GST_TRACE_OBJECT (self, "Popover unmap");
|
GST_TRACE_OBJECT (self, "Popover unmap");
|
||||||
|
|
||||||
|
/* Drop focus after popover is closed. Fixes issue
|
||||||
|
* with keyboard shortcuts not working when closed
|
||||||
|
* while within submenu */
|
||||||
|
gtk_widget_set_can_focus (widget, FALSE);
|
||||||
|
|
||||||
if (G_UNLIKELY (self->player == NULL))
|
if (G_UNLIKELY (self->player == NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user