Page Menu
Home
Search
Configure Global Search
Log In
Files
F15146
interface_panel.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Peter Tarasenko (pit)
Nov 13 2013, 3:08 PM
Size
1 KB
Subscribers
None
interface_panel.diff
View Options
Index: source/blender/editors/interface/interface_panel.c
===================================================================
--- source/blender/editors/interface/interface_panel.c (revision 32991)
+++ source/blender/editors/interface/interface_panel.c (working copy)
@@ -953,10 +953,10 @@
if(my >= block->maxy) button= 1;
}
else if(block->panel->control & UI_PNL_CLOSE) {
- if(mx <= block->minx+10+PNL_ICON-2) button= 2;
- else if(mx <= block->minx+10+2*PNL_ICON+2) button= 1;
+ if(mx <= block->maxx-8-PNL_ICON) button= 2;
+ else if(mx <= block->maxx-12*PNL_ICON-2) button= 1;
}
- else if(mx <= block->minx+10+PNL_ICON+2) {
+ else if(mx <= block->maxx-PNL_ICON-12) {
button= 1;
}
@@ -994,10 +994,10 @@
else
ED_region_tag_redraw(ar);
}
- else if(block->panel->flag & PNL_CLOSED) {
+ else if(block->panel->flag & PNL_CLOSED & mx <= (block->maxx-PNL_ICON-12)+PNL_ICON+2) {
panel_activate_state(C, block->panel, PANEL_STATE_DRAG);
}
- else {
+ else if(mx <= (block->maxx-PNL_ICON-12)+PNL_ICON+2) {
panel_activate_state(C, block->panel, PANEL_STATE_DRAG);
}
}
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
37/ff/35687c740aa91ef2f17efaad494b
Event Timeline
Log In to Comment