fix garbage on screen if drawing something, go to another tab, return and move objects. Regression was introduced on repo.hu r3033

This commit is contained in:
stefan schippers 2023-09-27 13:13:15 +02:00
parent f3230ceb42
commit 97e9b27bbd
4 changed files with 7 additions and 3 deletions

View File

@ -28,4 +28,5 @@
#define _XOPEN_SOURCE
/* Unneeded in Windows build, but specified here to be consistent with Linux */
/* #define FIX_BROKEN_TILED_FILL 1 */

View File

@ -1120,7 +1120,7 @@ int draw_xhair = tclgetboolvar("draw_crosshair");
statusmsg(str,1);
}
dbg(1, "key=%c(%d) EQUAL_MODMASK=%d, SET_MODMASK=%d\n", key, key, SET_MODMASK, EQUAL_MODMASK);
dbg(1, "key=%d EQUAL_MODMASK=%d, SET_MODMASK=%d\n", key, SET_MODMASK, EQUAL_MODMASK);
switch(event)
{
case EnterNotify:

View File

@ -2120,7 +2120,7 @@ void resetwin(int create_pixmap, int clear_pixmap, int force, int w, int h)
/* whenever a pixmap is recreated all GC attributes must be reissued */
resetcairo(1, 0, 1); /* create, clear, force */
/* change_linewidth(-1.0); */
change_linewidth(-1.0);
}
}
}

View File

@ -5784,6 +5784,9 @@ global env has_x OS autofocus_mainwindow
# on Windows Alt key mask is reported as 131072 (1<<17) so build masks manually with values passed from C code
if {$OS == "Windows" } {
bind $topwin <Alt-ButtonPress> {xschem callback %W %T %x %y 0 %b 0 [expr {$Mod1Mask}]}
bind $topwin <Control-Alt-ButtonPress> {xschem callback %W %T %x %y 0 %b 0 [expr {$ControlMask + $Mod1Mask}]}
bind $topwin <Shift-Alt-ButtonPress> {xschem callback %W %T %x %y 0 %b 0 [expr {$ShiftMask + $Mod1Mask}]}
bind $topwin <Alt-KeyPress> {xschem callback %W %T %x %y %N 0 0 [expr {$Mod1Mask}]}
bind $topwin <Control-Alt-KeyPress> {xschem callback %W %T %x %y %N 0 0 [expr {$ControlMask + $Mod1Mask}]}
bind $topwin <Shift-Alt-KeyPress> {xschem callback %W %T %x %y %N 0 0 [expr {$ShiftMask + $Mod1Mask}]}