Skip to content

Commit

Permalink
fix: pin win move
Browse files Browse the repository at this point in the history
  • Loading branch information
Horbin-Magician committed Jul 26, 2024
1 parent c6ccef1 commit c1ca5d3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/module/screen_shotter/pin_win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ impl PinWin {
pin_window.set_img_height(rect.height / scale_factor);

pin_window.set_scale_factor(scale_factor);
// if win_scale_factor != scale_factor {
// pin_window.set_scale_factor(scale_factor);
// } else {
// pin_window.set_scale_factor(win_scale_factor);
// }

{ // code for window move
let pin_window_clone = pin_window.as_weak();
Expand Down Expand Up @@ -213,7 +208,7 @@ slint::slint! {
no-frame: true;
always-on-top: true;
title: "小云视窗";
// forward-focus: key_focus;
forward-focus: key_focus;

in property <image> bac_image;
in property <length> win_border_width: 1px;
Expand Down

0 comments on commit c1ca5d3

Please sign in to comment.