multimonitor for osk

This commit is contained in:
end-4
2024-04-05 17:36:22 +07:00
parent f1c3c27e7e
commit f8d84d6068
9 changed files with 22 additions and 34 deletions
@@ -215,7 +215,7 @@ const KeyboardWindow = () => Box({
}),
});
export default () => {
export default ({ id }) => {
const kbWindow = KeyboardWindow();
const gestureEvBox = EventBox({ child: kbWindow })
const gesture = Gtk.GestureDrag.new(gestureEvBox);
@@ -249,7 +249,7 @@ export default () => {
gesture.connect('drag-end', () => {
var offset = gesture.get_offset()[2];
if (offset > 50) {
App.closeWindow('osk');
App.closeWindow(`osk${id}`);
}
else {
kbWindow.setCss(`