1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-14 04:45:57 +01:00

Various bug fixes.

This commit is contained in:
dan
1999-07-03 23:50:05 +00:00
parent caf8ffee27
commit 62240a0f26
15 changed files with 71 additions and 25 deletions

View File

@@ -1,3 +1,10 @@
changes since wmaker 0.60.0:
............................
- added WMScreenWidth() and WMScreenHeight() functions.
- fixed some problems when compiling with non gcc compilers.
changes since wmaker 0.53.0:
............................

View File

@@ -672,6 +672,10 @@ int WMWidthOfString(WMFont *font, char *text, int length);
WMScreen *WMWidgetScreen(WMWidget *w);
unsigned int WMScreenWidth(WMScreen *scr);
unsigned int WMScreenHeight(WMScreen *scr);
void WMUnmapWidget(WMWidget *w);
void WMMapWidget(WMWidget *w);

View File

@@ -593,7 +593,6 @@ WMHandleEvent(XEvent *event)
if (event->type == SelectionNotify || event->type == SelectionClear
|| event->type == SelectionRequest) {
puts("REQREWQ");
/* handle selection related events */
W_HandleSelectionEvent(event);
}

View File

@@ -953,6 +953,20 @@ WMScreenDepth(WMScreen *scr)
}
unsigned int
WMScreenWidth(WMScreen *scr)
{
return scr->rootView->size.width;
}
unsigned int
WMScreenHeight(WMScreen *scr)
{
return scr->rootView->size.height;
}
void
WMRedisplayWidget(WMWidget *w)
{

View File

@@ -245,7 +245,7 @@ doScrolling(WMWidget *self, void *data)
int vpsize;
float size;
if (sPtr->hScroller == self) {
if (sPtr->hScroller == (WMScroller *)self) {
pos = -sPtr->contentView->pos.x;
size = sPtr->contentView->size.width-sPtr->viewport->size.width;
vpsize = sPtr->viewport->size.width - sPtr->pageScroll;
@@ -310,7 +310,7 @@ doScrolling(WMWidget *self, void *data)
break;
}
if (sPtr->hScroller == self) {
if (sPtr->hScroller == (WMScroller *)self) {
W_MoveView(sPtr->contentView, -pos, sPtr->contentView->pos.y);
} else {
W_MoveView(sPtr->contentView, sPtr->contentView->pos.x, -pos);

View File

@@ -1260,7 +1260,6 @@ handleTextFieldActionEvents(XEvent *event, void *data)
{
WMNotification *notif = WMCreateNotification("_lostOwnership",
NULL,tPtr);
puts("notify it");
WMPostNotification(notif);
WMReleaseNotification(notif);
}