mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Fix drag resize when mouse support turned off
This commit is contained in:
12
extension.js
12
extension.js
@@ -573,12 +573,12 @@ function checkForMove(curFrameBefore, app) {
|
||||
|
||||
function windowGrabBegin(meta_display, meta_screen, meta_window, meta_grab_op, gpointer) {
|
||||
_log('windowGrabBegin')
|
||||
windowMoving = true;
|
||||
var app = global.display.focus_window;
|
||||
if (app.wintile) {
|
||||
checkForMove(app.get_frame_rect(), app);
|
||||
}
|
||||
if (meta_window.resizeable && config.preview.enabled) {
|
||||
windowMoving = true;
|
||||
var app = global.display.focus_window;
|
||||
if (app.wintile) {
|
||||
checkForMove(app.get_frame_rect(), app);
|
||||
}
|
||||
Mainloop.timeout_add(500, function () {
|
||||
checkIfNearGrid(app);
|
||||
});
|
||||
@@ -587,8 +587,8 @@ function windowGrabBegin(meta_display, meta_screen, meta_window, meta_grab_op, g
|
||||
|
||||
function windowGrabEnd(meta_display, meta_screen, meta_window, meta_grab_op, gpointer) {
|
||||
_log('windowGrabEnd')
|
||||
windowMoving = false;
|
||||
if (meta_window.resizeable && config.preview.enabled) {
|
||||
windowMoving = false;
|
||||
if (preview.visible == true) {
|
||||
var app = global.display.focus_window;
|
||||
if (!app.wintile)
|
||||
|
||||
Reference in New Issue
Block a user