mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-10 03:32:30 +02:00
fixed scroller bug when displaying scroller before
setting initial values
This commit is contained in:
1 parent
054d7cc006
commit
64defd4d22
5 files changed
+34
-6
No files matched your search
@@ -876,7 +876,7 @@ static void handleTableEvents(XEvent *event, void *data)
|
||||
case MotionNotify:
|
||||
if (table->dragging && event->xmotion.y >= 0) {
|
||||
row = event->xmotion.y/table->rowHeight;
|
||||
if (table->clickedRow != row && row >= 0) {
|
||||
if (table->clickedRow != row && row >= 0 && row < table->rows) {
|
||||
setRowSelected(table, table->clickedRow, False);
|
||||
setRowSelected(table, row, True);
|
||||
table->clickedRow = row;
|
||||
|
||||
Reference in new issue
Block a user