mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Disable controls focus when not in fullscreen
This should keep focus on video and make seeking from keyboard always work.
This commit is contained in:
@@ -12,6 +12,7 @@ class ClapperCustomButton extends Gtk.Button
|
|||||||
margin_bottom: 4,
|
margin_bottom: 4,
|
||||||
margin_start: 2,
|
margin_start: 2,
|
||||||
margin_end: 2,
|
margin_end: 2,
|
||||||
|
can_focus: false,
|
||||||
};
|
};
|
||||||
Object.assign(opts, defaults);
|
Object.assign(opts, defaults);
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ class ClapperCustomButton extends Gtk.Button
|
|||||||
this.margin_top = (isFullscreen) ? 6 : 4;
|
this.margin_top = (isFullscreen) ? 6 : 4;
|
||||||
this.margin_start = (isFullscreen) ? 3 : 2;
|
this.margin_start = (isFullscreen) ? 3 : 2;
|
||||||
this.margin_end = (isFullscreen) ? 3 : 2;
|
this.margin_end = (isFullscreen) ? 3 : 2;
|
||||||
|
this.can_focus = isFullscreen;
|
||||||
|
|
||||||
this.isFullscreen = isFullscreen;
|
this.isFullscreen = isFullscreen;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user