Workspace: Set a maximum scale for window clones
If there's a single small window (e.g. empathy chat) in the overview, it looks usable, because it's as big as outside of the overview, but when you start to type, overview search is launched, which is confusing. Fix that by setting maximum scale for window clones to 0.7 https://bugzilla.gnome.org/show_bug.cgi?id=646704
This commit is contained in:
parent
b88b743428
commit
64baea1693
@ -23,6 +23,8 @@ const WINDOW_DND_SIZE = 256;
|
||||
|
||||
const SCROLL_SCALE_AMOUNT = 100 / 5;
|
||||
|
||||
const WINDOW_CLONE_MAXIMUM_SCALE = 0.7;
|
||||
|
||||
const LIGHTBOX_FADE_TIME = 0.1;
|
||||
const CLOSE_BUTTON_FADE_TIME = 0.1;
|
||||
|
||||
@ -964,7 +966,7 @@ const Workspace = new Lang.Class({
|
||||
|
||||
let scale = Math.min((width - buttonOuterWidth) / rect.width,
|
||||
(height - buttonOuterHeight - captionHeight) / rect.height,
|
||||
1.0);
|
||||
WINDOW_CLONE_MAXIMUM_SCALE);
|
||||
|
||||
x = Math.floor(x + (width - scale * rect.width) / 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user